Accept values for enums instead of integers