title: linq to entities does not recognize the method int32 toint32
body: <p>I get this error when I try to compare int to int (when comparing string it works)</p>
  
  <pre><code>IEnumerable&lt;Commune&gt; myCommunes = from d in db.Communes
                                    where d.CodePostal == Convert.ToInt32(CodePostal.Text)
                                    select d;
  
  foreach (Commune c in myCommunes)
  {
      CommunesList.Add(c);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/JKuJ0.png" alt="enter image description here"></p>
  
  <p>Any ideas ?</p>