Converting a dictionary to a List<Customer>
<p>I have a <code>dictionary&lt;String,Object&gt;</code> and I want to convert it to a <code>List&lt;Customer&gt;</code>
Is there a clever way of doing that?
Any examples?
Thanks</p>

<p><strong>EDITED</strong></p>

<p>Sorry for not explaining properly.
Given the following why is it my result is 0?
Please note I m trying to emulate a live situation and the first key does not make sense and would like to exclude so only customers i should get.
Why does it not work? Thanks for any suggestions</p>

<pre><code>class Program
{
    static void Main(string[] args)
    {
        List&lt;Customer&gt; oldCustomerList = new List&lt;Customer&gt;
        {
            new Customer {Name = "Jo1", Surname = "Bloggs1"},
            new Customer {Name = "Jo2", Surname = "Bloggs2"},
            new Customer {Name = "Jo3", Surname = "Bloggs3"}
        };
        Dictionary&lt;string,object&gt;mydictionaryList=new Dictionary&lt;string, object&gt;
        {
            {"SillyKey", "Silly Value"},
            {"CustomerKey", oldCustomerList}
        };
        List&lt;Customer&gt; newCustomerList = mydictionaryList.OfType&lt;Customer&gt;().ToList(); 

        newCustomerList.ForEach(i=&gt;Console.WriteLine("{0} {1}", i.Name, i.Surname));
        Console.Read();
    }
}

public class Customer
{
    public string Name { get; set; }
    public string Surname { get; set; }
}
</code></pre>
