kotlin check if an object is type pair code example Example: kotlin cast types val myInt: Int = 1.0 as Int