jstuyts-squins
09/29/2017, 10:17 AMis
can only be used with types known at compile time. In your case type
is a dynamic type only known at run time. You can use: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/is-instance.html