how to cast a string not a objekt in kotlin code example Example: kotlin cast types val myInt: Int = 1.0 as Int