smart casts do not work that way. they work when y...
# getting-started
y
smart casts do not work that way. they work when you check the type of a variable, but not when you compare a class to another class