title: Cannot implicitly convert type
body: <p>I have the following function</p>
  
  <pre><code>public Dictionary&lt;DateTime, object&gt; GetAttributeList(
      EnumFactorType attributeType,
      Thomson.Financial.Vestek.Util.DateRange dateRange)
  {
      DateTime startDate = dateRange.StartDate;
      DateTime endDate = dateRange.EndDate;            
  
      return (
          //Step 1: Iterate over the attribute list and filter the records by 
          // the supplied attribute type 
          from assetAttribute in AttributeCollection
          where assetAttribute.AttributeType.Equals(attributeType)
  
          //Step2:Assign the TimeSeriesData collection into a temporary variable  
          let timeSeriesList = assetAttribute.TimeSeriesData
  
          //Step 3: Iterate over the TimeSeriesData list and filter the records by 
          // the supplied date  
          from timeSeries in timeSeriesList.ToList()
          where timeSeries.Key &gt;= startDate &amp;&amp; timeSeries.Key &lt;= endDate
  
          //Finally build the needed collection 
          select timeSeries);
  }
  
  Error:Cannot implicitly convert type 'System.Collections.Generic.IEnumerable&lt;System.Collections.Generic.Dictionary&lt;System.DateTime,object&gt;&gt;'
  to 'System.Collections.Generic.Dictionary&lt;System.DateTime,object&gt;'.
  An explicit conversion exists (are you missing a cast?)
  </code></pre>
  
  <p>Using C# 3.0</p>