Good thing is that platform type in all its uncertainty exists only until you assign the value to some Kotlin type. And it will throw at this very point, avoiding planting a null bomb that will explode some time later, when you can’t trace its origin.