title: Convert a Stream to a FileStream in C#
body: <p>What is the best method to convert a Stream to a FileStream using C#.</p>
  
  <p>The function I am working on has a Stream passed to it containing uploaded data, and I need to be able to perform stream.Read(), stream.Seek() methods which are methods of the FileStream type.</p>
  
  <p>A simple cast does not work, so I'm asking here for help.</p>