KOTLIN supports smart-cast of objects code example Example: kotlin cast types val myInt: Int = 1.0 as Int