conv to class