Allow to use custom enum types