Add another static method for enum types