convert enum AccidentalVal into enum class