January 2018
Intermediate to advanced
434 pages
14h 1m
English
In Java, we used to typecast by appending the desired type in front of variables like this:
String a = Integer.toString(10)
Also, in Java, numeric is directly converted to larger numeric types, but in Kotlin, this feature is not there for type safety—so how can we change one type of object to another in Kotlin? We will see it in this recipe.
Read now
Unlock full access