convert enum Type to enum class