toBigInt

fun toBigInt(value: Any?): KBigInt(source)

ToBigInt (ECMAScript 2020, 7.1.13): a bigint, a boolean or a string that spells an integer.