title: How do I cast this type into a Dictionary?
body: <p>I have the following code. It uses a class someone built to manage a specific file type called a plist. I am trying to take what it spits out to me and put it in a Dictionary.</p>
  
  <pre><code>Dictionary&lt;string, IPropertyListDictionary&gt; maindict = new Dictionary&lt;string, IPropertyListDictionary&gt;();
  maindict = data["section0"].DictionaryItems;
  </code></pre>
  
  <p>The problem is that I get a red line under "DictionaryItems" with the following error:</p>
  
  <pre><code>Cannot implicitly convert type
   'System.Collections.Generic.IEnumerable&lt;System.Collections.Generic.KeyValuePair&lt;string,CodeTitans.Core.Generics.IPropertyListItem&gt;&gt;' 
  to
   'System.Collections.Generic.Dictionary&lt;string,CodeTitans.Core.Generics.IPropertyListDictionary&gt;'. 
  An explicit conversion exists (are you missing a cast?)
  </code></pre>
  
  <p>Can anyone help me correctly cast this? Thanks.</p>