title: What type should my list contain?
body: <p>I have this query</p>
  
  <pre><code>List&lt;int&gt; AuctionIds = 
     (from a in _auctionContext.Auctions
      where a.AuctionEventId == auction.AuctionEventId
      select new { a.Id }).ToList();
  </code></pre>
  
  <p>But I receive a compile error</p>
  
  <pre><code>Cannot implicitly convert type 'System.Collections.Generic.List&lt;AnonymousType#1&gt;' to 'System.Collections.Generic.List&lt;int&gt;'
  </code></pre>
  
  <p>What type should AuctionIds be?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The AuctionIds field is in fact in another class (a model class) so I can't just use var.  I can't believe Jon Skeet hasn't answered this.</p>