Apparently, static_cast is the official way to make it work, because operators like bitwise OR aren't defined for this enum.