Smart casts cannot be done on vars (only on vals) ...
# getting-started
s
Smart casts cannot be done on vars (only on vals) because another thread may have modified the var between the check and the access