title: IEnumerable<CustomType> in PowerShell
body: <p>I'm trying to use <code>Enumerable.ToList()</code> in PowerShell. Apparently, to do that, I have to explicitly convert the object to <code>IEnumerable&lt;CustomType&gt;</code>, but I am unable to do that. It seems I can't correctly write <code>IEnumerable&lt;CustomType&gt;</code> in PowerShell. Both <code>IEnumerable&lt;string&gt;</code> and <code>CustomType</code> itself work correctly (the custom type I'm trying to use is called <code>WpApiLib.Page</code>), so I don't know what can I be doing wrong.</p>
  
  <pre class="lang-none prettyprint-override"><code>PS C:\Users\Svick&gt; [Collections.Generic.IEnumerable``1[System.String]]
  
  IsPublic IsSerial Name                                     BaseType
  -------- -------- ----                                     --------
  True     False    IEnumerable`1
  
  
  PS C:\Users\Svick&gt; [WpApiLib.Page]
  
  IsPublic IsSerial Name                                     BaseType
  -------- -------- ----                                     --------
  True     True     Page                                     System.Object
  
  
  PS C:\Users\Svick&gt; [Collections.Generic.IEnumerable``1[WpApiLib.Page]]
  Unable to find type [Collections.Generic.IEnumerable`1[WpApiLib.Page]]: make su
  re that the assembly containing this type is loaded.
  At line:1 char:51
  + [Collections.Generic.IEnumerable``1[WpApiLib.Page]] &lt;&lt;&lt;&lt;
  </code></pre>