kotlin convert a string into a value code example
Example 1: kotlin string to int
val myStringNumber: String = "100";
val number: Int = myStringNumber.toInt()
Example 2: parse an int in kotlin
val int = text.toInt()
val myStringNumber: String = "100";
val number: Int = myStringNumber.toInt()
val int = text.toInt()