convert enum TympoType into enum class