title: How to convert IQueryable<Int> to 'int'
body: <p>I am facing a problem when  trying to get the last record of my model Client in terms of the userID. </p>
  
  <pre><code>var user_id = (int)Membership.GetUser().ProviderUserKey;
          var client_id = from d in db.Connexions 
                          where d.userId == user_id
                          select d.ClientID;
  
          var lastClient = from d in db.Clients
                           where d.ClientID = client_id // here appears the error
                           select d;
  </code></pre>
  
  <p>For the first one there is no error but for the second request there is an error of type </p>