convert enum HookType into class enum