The C# language has the is
[http://msdn.microsoft.com/en-us/library/scekt9xw%28v=vs.90%29.aspx] keyword
which allows you to check if a variable is of a given type.
if(myVar is MyClass)
This is commonly helpful when dealing with a variable of type object, checking
if