convert enum BracketType into enum class