Generic for enum converters.