def convert(self, root_cls):
d = self.__dict__<EOL>d['<STR_LIT>'] = self.sl<EOL>try:<EOL><INDENT>cls = root_cls.get_class(root_cls.sl)<EOL><DEDENT>except (AttributeError, TypeError):<EOL><INDENT>cls = root_cls.get_class(self.sl)<EOL><DEDENT>return cls(**d)<EOL>
Convert to another derived class. cls is the base class for the derived type,
        ie AcsGeoid, TigerGeoid, etc.