I'm starting to see these statements and I am trying to wrap my head around these kind of statements.
if (obj is SomeAuto car)
{
//Do stuff
}
If I understand correctly we basically are casting obj into the variable car which would be a type "SomeAuto"?
1) What is the official terminology of this statement?
2) What would happen if I wanted to change the if statement to conditionally execute for a particular reason?
For example say SomeAuto is a base class and I only wanted a certain type of auto, or say I want all of the SomeAuto except maybe one particular kind.