Why can I not cast a List as List? Why does the following not work:
internal class ObjBase
{
}
int
Linq has a ConvertAll method. so something like
list.ConvertAll(objBase => objbase.ConvertTo(obj));
I'm not sure what else to suggest. I assume ObjBase is the base class, and if all ObjBase objects are Obj objects, i'm not sure why you would have the two objects in the first place. Perhaps i'm off the mark.
Edit: the list.Cast method would work better than the above, assuming they are castable to each other. Forgot about that until I read the other answers.