title: Cannot implicitly convert type 'System.Linq.IQueryable<int>' to 'int?'
body: <pre><code>var cityList = from country in 
                      doc.Element("result")
                      .Element("cities")
                      .Descendants("city")
  select new {
          Name = country.Element("name").Value,
          Code = country.Element("code").Value,
          CountryCode = int.Parse(country
                        .Element("countrycode")
                        .Value)
      };
  
  foreach(var citee in cityList)
  {
      City city = new City();
      city.CountryID = from cnt in db.Countries 
                       where cnt.DOTWInternalID == citee.CountryCode 
                       select cnt.ID;
  }
  </code></pre>
  
  <p>I'm getting an error on the second query as seen in the title of this post. I tried converting to <code>int</code> to <code>nullable int</code> but nothing worked. Help me, guys.</p>
  
  <p>Thanks</p>