Use is instance vs type when determining class type of an object.