turn enum BdatType into enum class