Converts a bson_value_t to another type. If BSON is used as a type, it assumes it's a document. Make sure to unlock() that BSON.
See Implementation
Converts a bson_value_t to another type. If BSON is used as a type, it assumes it's a document. Make sure to unlock() that BSON.