title: LINQ casting with a Data.DataTableCollection
body: <p>I have the following VB.NET code that I am using to sort a Data.DataTable by column count.</p>
  
  <pre><code>For Each dtTarget As Data.DataTable In _
      From x In Target.Tables _
      Where DirectCast(x, Data.DataTable).Rows.Count &gt; 0 _
      Order By DirectCast(x, Data.DataTable).Columns.Count
  ...
  Next
  </code></pre>
  
  <p>Is there a way to indicate that x is a Data.DataTable without having to DirectCast it each time it is referenced (twice in this case) in the LINQ query?</p>