I am trying to create objects from another object which has a list of objects. But I am getting a casting error on the line where I do the casting. Is there a way to cast object of different collection on to another collection.I am trying to create objects from another obje