added an enum converter. cannot register it generically, as it needs to be parameterised with the specific enum type to convert