Iterate on generalization instead of on specialization
0
Hello, I am using the Community Commons Clone function as a way to change the specialization of an object. I thought that I would be able to do that by cloning their common generalized object. But cloning fails due to a difference of of fields between source and target. And this seems to happen because even though the iterator that feeds it to the clone function is set to a list of the generalization object type, the iterated objects are automatically cast into their specialization. How can I prevent that from happening?