string to int kotlin safe code example Example: kotlin string to int val myStringNumber: String = "100"; val number: Int = myStringNumber.toInt()