title: Is there a native feature to convert string based JSON into Mongoose Schema object instance?
body: <p>I am using Express and I am looking for a convenient way to convert this kind of object (which comes on the request <code>req.body.myObject</code>):</p>
  
  <pre><code>{
    "name": "Foo",
    "someNumber": "23",
    "someBoolean": "on"
  }
  </code></pre>
  
  <p>Into an instance of this Schema:</p>
  
  <pre><code>var myObjectSchema = new Schema({
      name: String,
      someNumber: Number,
      someBoolean: Boolean
  });
  </code></pre>
  
  <p>Notice that the first object comes from the request, so its made entirely by Strings. </p>
  
  <p>Is there some nice way to achieve this? If not, would you have any suggestions on how to implement this feature as a middleware???</p>