No, there will be an unsuccessful cast.
# getting-started
m
No, there will be an unsuccessful cast.
a
ClassCastException?
k
@aphex yes, ClassCastException, if you want it to be false you can do
val bar: Boolean = foo ?: false
a
Thanks 💃
g
@aphex or
val bar = foo == true