title: Cannot implicitly convert type 'object' to 'Microsoft.Office.Interop.Excel.Worksheet'. An explicit conversion exists (are you missing a cast?)
body: <p>Here I'm opening excel and writing to excel sheet. I'm changing my windows application to asp website and seen this error. I have added all the references and libraries. Don't know what I am missing here. </p>
  
  <p>Getting error as mentioned below. Please help me.</p>
  
  <pre><code>    Excel.Application excel = new Excel.Application();
      excel.Visible = false; // to hide the processing 
      Excel.Workbook wb = excel.Workbooks.Add();
      Excel.Worksheet sh = wb.Sheets.Add(); // Error at wb
  
  
      sh.Name = "Links";
  
      for (int i = 1; i &lt; list.Count; i++)
      {
          sh.Cells[i.ToString(), "A"].Value2 = list[i]; //Error at .Value2
  
      }
  </code></pre>