is `x as String` essentially the same thing as doi...
# announcements
d
is
x as String
essentially the same thing as doing
(x as String?)!!
?
g
I believe it will generate different bytecode
and also will throw different exception
d
ClassCastException
?
g
1.ClassCastException 2. KotlinNullPointerException
So because of this I would say this is not the same
Also you don’t have information about real class of
x
in second case