convert enum Type to enum class
convert enum Type to enum class