title: converting LINQ query result to int
body: <p>I've written a LINQ query that should return an int value. but I'm not able to convert this value to int and an exception occured:
  <strong>Unable to cast object of type 'QuickRoutes.DAL.RouteLinq' to type 'System.IConvertible'.</strong><br>
  this is my LINQ :</p>
  
  <pre><code>var res = (from p in aspdb.RouteLinqs
                         orderby p.RouteId descending
                         select p).Take(1);
  </code></pre>
  
  <p>and the exception occures here:</p>
  
  <pre><code> route.Id =Convert.ToInt32(res.FirstOrDefault());
  </code></pre>
  
  <p>how can I solve this problem?</p>