Invalid Arguments Error Using Generics
<p>I am trying to use the function found here:
<a href="http://stackoverflow.com/questions/709035/datatable-to-listobject">DataTable to List&lt;object&gt;</a></p>

<pre><code>  public static IList&lt;T&gt; ConvertTo&lt;T&gt;(DataTable table)
        {
            if (table == null)
                return null;

            List&lt;DataRow&gt; rows = new List&lt;DataRow&gt;();

            foreach (DataRow row in table.Rows)
                rows.Add(row);

            return ConvertTo&lt;T&gt;(rows);
        }
</code></pre>

<p>the return statement is giving me an exception stating:</p>

<pre><code>The best overloaded method match for 'Utilities.Utility.ConvertTo&lt;T&gt;(System.Data.DataTable)' has some invalid arguments
</code></pre>

<p>Can someone help me fix this error??</p>
