To check if an object is of a certain type in c#, simply use the is statement:
is
if (myPerson is Person) { // Variable is of type Person }