title: Changing powershell pipeline type to hashtable (or any other enumerable type)
body: <p>I like to write a cmdlet "Convert-ToHashTable" which performs following task:</p>
  
  <pre><code>$HashTable = Import-Csv Table.csv | Convert-ToHashTable
  </code></pre>
  
  <p>Import-csv places an array on the pipeline, how can i change it to a hashtable in my Convert-ToHashTable cmdlet?  In the Process part of the cmdlet i can access the elements, but i don't know how to change the type of the pipeline itself </p>
  
  <p>Process 
  {
      Write-Verbose "Process $($myinvocation.mycommand)"
      $CurrentInput = $_
      ...
  }</p>
  
  <p>Is there a way to return a complete hashtable as the new pipeline or create a new pipeline with type hashtable?  </p>