toBigInteger

Parses the string as a java.math.BigInteger number and returns the result.

inline fun String.toBigInteger(): BigInteger(source)
import java.math.BigInteger

fun main() {
    val bigInt = "12345678901234567890".toBigInteger()
    println("BigInteger: $bigInt")
}

Source