Test if an object is a_kind_of instance of a class.
object o is_kind_of class T if o is an instance of T or a subclass of T.
E.g. if (is_kind_of<IfStatement>(object)) ...
Cast an object to a class.
If the cast is illegal, this function will bomb.
E.g. IfStatement *ifstmt = to<IfStatement>(stmt);
Cast an object to a const class.
If the cast is illegal, this function will bomb.
written by Dimitri van Heesch, © 1997-1999