long to int kotlin code example
Example 1: kotlin string to int
val myStringNumber: String = "100";
val number: Int = myStringNumber.toInt()
Example 2: kotlin Number to Long
val something: Any = getSomething()
if(something is Number) {
val longValue = something.toLong()
}
Example 3: kotlin long max value
9,223,372,036,854,775,807 (2^63 - 1)