`objOfSomeClass::class.safeCast(otherInstance) != ...
# announcements
s
objOfSomeClass::class.safeCast(otherInstance) != null
d
interesting, will try that out!
s
I would guess it requires reflect also if isInstance does
d
Hrm...
safeCast
is not known -

https://puu.sh/zNKhA/b4fa27a9cd.png

s
import kotlin.reflect.full.safeCast
So yeah
d
Not really an option then 😞 - and reflect-lite seems to be for only very specific use cases