title: The non-generic type 'System.Collections.ArrayList' cannot be used with type arguments
body: <p>I read a private field via reflection:</p>
  
  <pre><code>var parameters = typeof(HqlProvider).GetField("paramList", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(query);
  </code></pre>
  
  <p>And it works fine. I can put in a breakpoint and see everything. But when I try to cast parameters to what it is (an ArrayList) I get <code>The non-generic type 'System.Collections.ArrayList' cannot be used with type arguments</code>.</p>
  
  <p>How can it not cast it to the thing that it is?</p>