title: Is it possible to cast in a MongoDB-Query?
body: <p>When I have two MongoDB documents like this...</p>
  
  <pre><code>db.test.insert( {"value" : "10123"} );
  db.test.insert( {"value" : "160"} );
  </code></pre>
  
  <p>The result of a query like: </p>
  
  <pre><code>db.test.find({"value" :{$gt : "12"} });
  </code></pre>
  
  <p>is..</p>
  
  <pre><code>{ "_id" : ObjectId("4c6d1b92304326161b678b89"), "value" : "160" }
  </code></pre>
  
  <p>It's obvious, that a string comparison is made, so that my first value is not returned.
  Is there any way to cast within the query?</p>
  
  <p>Something like: </p>
  
  <pre><code>db.test.find({ (int) "value" :{$gt : 12} });
  </code></pre>
  
  <p>would be great. A query like </p>
  
  <pre><code>db.test.find({"value" :{$gt : 12} }); // without the quotes around "12"
  </code></pre>
  
  <p>returns nothing.</p>