convert enum HDegreeType into enum class