toULong

Parses the string as a ULong number and returns the result.

fun String.toULong(): ULong(source)
fun main() {
    val stringNumber = "12345678901234567890"
    val uLongValue: ULong = stringNumber.toULong()
    println("ULong value: $uLongValue")
}

Source