| BsonValue Operators and Type Conversions | 
The BsonValue type exposes the following members.
 Operators
Operators| Name | Description | |
|---|---|---|
|   | Equality | 
            Compares two BsonValues.
             | 
|   | (BsonValue to Boolean) | 
            Casts a BsonValue to a bool.
             | 
|   | (BsonValue to NullableBoolean) | 
            Casts a BsonValue to a bool?.
             | 
|   | (BsonValue to Byte) | 
            Casts a BsonValue to a byte[].
             | 
|   | (BsonValue to DateTime) | 
            Casts a BsonValue to a DateTime.
             | 
|   | (BsonValue to NullableDateTime) | 
            Casts a BsonValue to a DateTime?.
             | 
|   | (BsonValue to Decimal) | 
            Casts a BsonValue to a decimal.
             | 
|   | (BsonValue to NullableDecimal) | 
            Casts a BsonValue to a decimal?.
             | 
|   | (BsonValue to Decimal128) | 
            Casts a BsonValue to a Decimal128.
             | 
|   | (BsonValue to NullableDecimal128) | 
            Casts a BsonValue to a nullable Decimal128?.
             | 
|   | (BsonValue to Double) | 
            Casts a BsonValue to a double.
             | 
|   | (BsonValue to NullableDouble) | 
            Casts a BsonValue to a double?.
             | 
|   | (BsonValue to Guid) | 
            Casts a BsonValue to a Guid.
             | 
|   | (BsonValue to NullableGuid) | 
            Casts a BsonValue to a Guid?.
             | 
|   | (BsonValue to Int32) | 
            Casts a BsonValue to an int.
             | 
|   | (BsonValue to NullableInt32) | 
            Casts a BsonValue to an int?.
             | 
|   | (BsonValue to Int64) | 
            Casts a BsonValue to a long.
             | 
|   | (BsonValue to NullableInt64) | 
            Casts a BsonValue to a long?.
             | 
|   | (BsonValue to ObjectId) | 
            Casts a BsonValue to an ObjectId.
             | 
|   | (BsonValue to NullableObjectId) | 
            Casts a BsonValue to an ObjectId?.
             | 
|   | (BsonValue to Regex) | 
            Casts a BsonValue to a Regex.
             | 
|   | (BsonValue to String) | 
            Casts a BsonValue to a string.
             | 
|   | GreaterThan | 
            Compares two BsonValues.
             | 
|   | GreaterThanOrEqual | 
            Compares two BsonValues.
             | 
|   | (Boolean to BsonValue) | 
            Converts a bool to a BsonValue.
             | 
|   | (Byte to BsonValue) | 
            Converts a byte[] to a BsonValue.
             | 
|   | (DateTime to BsonValue) | 
            Converts a DateTime to a BsonValue.
             | 
|   | (Decimal to BsonValue) | 
            Converts a decimal to a BsonValue.
             | 
|   | (Double to BsonValue) | 
            Converts a double to a BsonValue.
             | 
|   | (Enum to BsonValue) | 
            Converts an Enum to a BsonValue.
             | 
|   | (Guid to BsonValue) | 
            Converts a Guid to a BsonValue.
             | 
|   | (Int32 to BsonValue) | 
            Converts an int to a BsonValue.
             | 
|   | (Int64 to BsonValue) | 
            Converts a long to a BsonValue.
             | 
|   | (NullableBoolean to BsonValue) | 
            Converts a bool? to a BsonValue.
             | 
|   | (NullableDateTime to BsonValue) | 
            Converts a DateTime? to a BsonValue.
             | 
|   | (NullableDecimal to BsonValue) | 
            Converts a decimal? to a BsonValue.
             | 
|   | (NullableDouble to BsonValue) | 
            Converts a double? to a BsonValue.
             | 
|   | (NullableGuid to BsonValue) | 
            Converts a Guid? to a BsonValue.
             | 
|   | (NullableInt32 to BsonValue) | 
            Converts an int? to a BsonValue.
             | 
|   | (NullableInt64 to BsonValue) | 
            Converts a long? to a BsonValue.
             | 
|   | (String to BsonValue) | 
            Converts a string to a BsonValue.
             | 
|   | (Regex to BsonValue) | 
            Converts a Regex to a BsonValue.
             | 
|   | (Decimal128 to BsonValue) | 
            Converts a Decimal128 to a BsonValue.
             | 
|   | (NullableDecimal128 to BsonValue) | 
            Converts a nullable Decimal128 to a BsonValue.
             | 
|   | (ObjectId to BsonValue) | 
            Converts an ObjectId to a BsonValue.
             | 
|   | (NullableObjectId to BsonValue) | 
            Converts an ObjectId? to a BsonValue.
             | 
|   | Inequality | 
            Compares two BsonValues.
             | 
|   | LessThan | 
            Compares two BsonValues.
             | 
|   | LessThanOrEqual | 
            Compares two BsonValues.
             | 
 See Also
See Also