Converting classes to defined types to enable wrappers to call them multiple times