toUInt

Parses the string as an UInt number and returns the result.

fun String.toUInt(): UInt(source)
fun main() {
    val decimalString = "123"
    val number: UInt = decimalString.toUInt()

    println("The UInt value is $number")  // Output: The UInt value is 123
}

Source