auto userata to class* cast