convert enum HairpinType to enum class