title: Cannot implicitly convert type, explicit conversion exists (are you missing a cast?)
body: <p>I have an error:</p>
  
  <blockquote>
    <p>(Cannot implicitly convert type 'shenoy webapi.Models.PartIndex' to 'System.Collections.Generic.IEnumerable'. An explicit conversion exists (are you missing a cast?) shenoywebapi D:\shenoystudio\shenoywebapi\Controllers\RateController.cs 69 Active)</p>
  </blockquote>
  
  <pre><code>[Route("api/Rate/getproductrate")]
  public IEnumerable&lt;Rate&gt; GetProductRate()
  {
      var list = new List&lt;Rate&gt;();
      var dsRate = SqlHelper.ExecuteDataset(AppDatabaseConnection, CommandType.StoredProcedure, 0, "GetProductRates");
  
      if (dsRate.Tables[0].Rows.Count &gt; 0)
      {
          foreach (DataRow row in dsRate.Tables[0].Rows)
          {
              list.Add(new Rate
              {
                  Id = Convert.ToInt64(row[0]),
                  SerialNumber = row[1].ToString(),
                  ProductName = row[2].ToString(),
                  Unit = row[3].ToString(),
                  PartIndex = new PartIndex { Series = row[4].ToString() },
              });
          }
      }
      return list;
  }
  </code></pre>
  
  <p>This is my model:</p>
  
  <pre><code>namespace shenoywebapi.Models
  {
      public class Rate
      {
          public long Id { get; set; }
          public DateTime wefDate { get; set; }
          public string SerialNumber { get; set; }
          public string ProductName { get; set; }
          public string Unit { get; set; }
          public long Rates { get; set; }
          public IEnumerable&lt;PartIndex&gt; PartIndex { get; set; }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>Severity   Code    Description Project File    Line    Suppression State
    Error   CS0266  Cannot implicitly convert type 'shenoywebapi.Models.PartIndex' to 'System.Collections.Generic.IEnumerable'. An explicit conversion exists (are you missing a cast?)  shenoywebapi    D:\shenoystudio\shenoywebapi\Controllers\RateController.cs  69  Active</p>
  </blockquote>