more enum conversion stuff