Convert x.classinfo to typeid(x)