Function Bson.opCast
Converts the BSON value to a D value.
T opCast(T)() const;
If the BSON type of the value does not match the D type, an exception is thrown.
Converts the BSON value to a D value.
T opCast(T)() const;
If the BSON type of the value does not match the D type, an exception is thrown.