BitField: Add a static_assert.
BitField: Cast enum values to proper integer type.