Converts an object with native JavaScript types and objects to MongoDB Extended JSON object