This method handles type conversion from ext-mongo to ext-mongodb:
- For all types (MongoId, MongoDate, etc.) it returns the correct BSON
object instance
- For arrays and objects it iterates over properties and converts each
item individually
- For other types it returns the value unconverted