title: Powershell Convert String[] to List<String>
body: <p>I have this code:</p>
  
  <pre><code>    $csvUserInfo = @([IO.File]::ReadAllLines($script:EmailListCsvFile))
      $x = $csvUserInfo.ToList()
  </code></pre>
  
  <p>When it runs, I get this error:</p>
  
  <pre><code>Method invocation failed because [System.String] does not contain a method named 'ToList'.
  </code></pre>
  
  <p>Why is $csvUserInfo of type String? </p>
  
  <p>Doesn't [IO.File]::ReadAllLines return a string[] ?</p>
  
  <p>I've tried with/without the @ as well, it makes no difference.</p>