how to get the integer in string kotlin code example Example: parse an int in kotlin val int = text.toInt()