I have a problem about an objects deserialization: I serialized some objects different from one another but extend a X class. These objects are serialized in a random way and i don't know the correct order when they're about to be deserialized and I can't find a way to make a specific casting to their specific class. I thought to rescue each object and custing it to the X class, but then how do i make a down-casting? Using the reflection could be the solution?