Removed String param for toClass method. Unnecessary.