For the sake of debugging your class hierarchy if it is really complex, try printing out the list of superclasses for the object in the array. To do that, add this bit of code before you cast it, and...