I want to check if an object is not of a particular type. I know how to check if something is of a particular type:
if (t is TypeA) { ... }
If you are doing a TypeA x = (TypeA)t; inside the if block then a better way is
TypeA x = (TypeA)t;
TypeA x = t as TypeA if(x != null) { ... }
This causes only one time type checking rather than twice.