title: HttpPostedFileBase convert to HttpPostedFile
body: <p>Is there possibility to convert <code>HttpPostedFileBase to HttpPostedFile</code>, i tried searching SO questions, I could only find just opposite situation <code>HttpPostedFile</code> to <code>HttpPostedFileBase</code>...</p>
  
  <p>Tried reading: 
  <a href="http://www.prideparrot.com/blog/archive/2012/8/uploading_and_returning_files" rel="noreferrer">http://www.prideparrot.com/blog/archive/2012/8/uploading_and_returning_files</a></p>
  
  <p>He states "In some cases we need to convert <code>HttpPostedFileBase</code> to <code>HttpPostedFile</code> and we can achieve that using the <code>HttpPostedFileWrapper</code>.", so how could I do that?</p>
  
  <p>Please do not tell me to use <code>HttpPostedFileBase</code>, because I am using DevExpress framework <code>UploadedFile</code> class which only accept <code>HttpPostedFile</code> in its constructor.</p>
  
  <p>I tried doing like this, but do not know what else should I write <code>HttpPostedFile</code></p>
  
  <pre><code>HttpFileCollectionBase files = Request.Files;
  
  for (int i = 0; i &lt; files.Count; i++)
  {
      var file = files.Get(i);
  }
  </code></pre>
  
  <p>Thanks for Your time and help in advance.</p>