Implement 'VALUE for enumerated types