Retrieves whether the compound object is an instance of a specified type.
true if the compound object is an instance of the specified type; otherwise, the method returns false.