Fixed #5: Enum should convert values to int