snrostov
Right I should have clarified that I meant “for primitive types”.
val x = 1 val y = x as Boolean println(y)