Casting from IEnumerable<Object> to IEnumerable<string>
<p>Recently I found a very surprising behavior in c#.
I had a method which takes <code>IEnumerable&lt;Object&gt;</code> as a parameter and i was passing
<code>IEnumerable&lt;string&gt;</code> but it's not possible.
While in c# everything can be upcast to Object than why this is not possible?
It's totally confusing for me.
Please someone clear me on this issue.</p>
