title: How to get Select-Object to return a raw type (e.g. String) rather than PSCustomObject?
body: <p>The following code gives me an array of PSCustomObjects, how can I get it to return an array of Strings?</p>
  
  <pre><code>$files = Get-ChildItem $directory -Recurse | Select-Object FullName | Where-Object {!($_.psiscontainer)}
  </code></pre>
  
  <p>(As a secondary question, what's the psiscontainer part for? I copied that from an example online)</p>
  
  <p><strong>Post-Accept Edit:</strong> Two great answers, wish I could mark both of them. Have awarded the original answer.</p>