I\'m trying to perform the following cast
private void MyMethod(object myObject) { if(myObject is IEnumerable) { List c
You can't cast an IEnumerable to a List.
But you can accomplish this using LINQ:
var result = ((IEnumerable)myObject).Cast().ToList();