title: Cannot implicitly convert type 'System.Web.HttpPostedFile' to 'System.Web.HttpPostedFileBase'
body: <p>I have this method which does not build, it errors with the message:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type '<code>System.Web.HttpPostedFile</code>' to '<code>System.Web.HttpPostedFileBase</code>'</p>
  </blockquote>
  
  <p>I really need this to be of type <code>HttpPostedFileBase</code> instead of <code>HttpPostedFile</code>, I have tried boxing and it does not work:</p>
  
  <pre><code>foreach (string inputTagName in HttpContext.Current.Request.Files)
  {
      HttpPostedFileBase filebase =HttpContext.Current.Request.Files[inputTagName];
      if (filebase.ContentLength &gt; 0)
      {
          if (filebase.ContentType.Contains("image/"))
          {
           SaveNonAutoExtractedThumbnails(doc, filebase);
          }
      }
  }
  </code></pre>