Cast FrequencyId to/from Frequency enum