title: LINQ decimal value in query
body: <p>I use: </p>
  
  <ul>
  <li>Asp.net core</li>
  <li>MongoDB Driver 2.4.2</li>
  </ul>
  
  <p>I'm building a Mongo DB Linq query like hereunder:</p>
  
  <p>This returns records as expected: </p>
  
  <pre><code>int.TryParse("1", out intVal);
  query = query.Where(x =&gt; x.MyIntField == intVal);
  </code></pre>
  
  <p>This doesn't return any records while there are records that have MyDecimalField equal to 1.0:</p>
  
  <pre><code>decimal.TryParse("1.0", out decVal);
  query = query.Where(x =&gt; x.MyDecimalField == decVal);
  </code></pre>
  
  <p>Does anybody have a clue why? </p>