kotlin how to check view type in if code example Example: kotlin cast types val myInt: Int = 1.0 as Int