title: Unable to cast object of type 'System.String' to type 'System.Collections.Generic.List`1[System.String]'
body: <pre><code>protected void File_Upload(object sender, AjaxFileUploadEventArgs e)
  {   
      List&lt;String&gt; pathlist = null;
      if (Session["UploadedPath"] != null)
      {
          pathlist = (List&lt;String&gt;)Session["UploadedPath"];
      }
      else
      {
          pathlist = new List&lt;string&gt;();
      }
      string filename = e.FileName;
      string path = "~/Documents/" + filename;
      this.AjaxFileUpload1.SaveAs(Server.MapPath(path));
      pathlist.Add(path);
      Session["UploadedPath"] = pathlist;
  }
  </code></pre>
  
  <p>Im getting an error like this</p>
  
  <p>Unable to cast object of type <code>System.String</code> to type <code>System.Collections.Generic.List1[System.String].</code></p>
  
  <p>How can i save multiple uploaded file into the databse</p>