How to Check Type at Runtime in Kotlin: instanceof, is, and Smart Casts | CodeTrail