title: Why can't I convert from 'System.IO.StreamWriter' to 'CsvHelper.ISerializer'?
body: <p>Trying to write the contents of people to a CSVfile and then export it, however I am getting a build error and its failing. the error is:</p>
  <p><code>cannot convert from 'System.IO.StreamWriter' to 'CsvHelper.ISerializer'</code></p>
  <p>Not sure why this is happening unless as I am certain I have done it this way loads of times.</p>
  <pre><code>private void ExportAsCSV()
  {
      using (var memoryStream = new MemoryStream())
      {
          using (var writer = new StreamWriter(memoryStream))
          {
              using (var csv = new CsvHelper.CsvWriter(writer))
              {
                  csv.WriteRecords(people);
              }
  
              var arr = memoryStream.ToArray();
              js.SaveAs(&quot;people.csv&quot;,arr);
          }
      }
  }
  </code></pre>