BitField: Cast enum values to proper integer type.