Sometimes, you need to know if an object is an instance of some specific type. To do that, use is function (e.g., object is SomeClass). This will evaluate to true if the object is an instance of that class (or some subclass).

You can learn more about this in:
Run Edit