Well, I don't think checking for the class is inherent in the definition of the class. It is a case of (is this object this type of thing? ok, I know how to behave in that case).

I can write a helper function.