title: Entity Framework: how to select an int
body: <p>I need to select an integer value from a table:</p>
  
  <pre><code>int id = from s db.Table
           where s.Id == someParameter
           select s.intValueOfInterest;
  </code></pre>
  
  <p>That doesn't work. I tried this but it looks really ugly:</p>
  
  <pre><code>int id = int.Parse((from s db.Table
           where s.Id == someParameter
           select s.intValueOfInterest).ToString());
  </code></pre>
  
  <p>What would be the best way to do that? Thanks.</p>