I'm having a problem of InvalidCastException
trying to cast an
IList<KeyValuePair<string, object>> x
to an
IList<IItem> y
where IItem is my interface I have tried...
IList<IItem> y = (IItem) x; //INVALIDCASTEXCEPTION
IList<IItem> y = x.Cast<IItem>().ToList(); //another exception
... someone can help me?