Doing `thing as Int?` shows "useless cast"
# announcements
d
Doing
thing as Int?
shows "useless cast"
o
As a workaround you can capture
thing
into a local variable, so that smart cast works
d
Yeah, that's what I have to do now.