The C# language has the is 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 a type extends a base class, checking if a type implements an