posted 23 years ago
Most Important! Objects do NOT get converted or cast. Object references get cast. Some primitives can get converted.
1) casting an interface reference
You can cast an interface reference to Object or to an interface that is a parent of the interface. Thats because everything descends from Object, and interfaces can have a hierarchy.
2) an array reference can be cast to Object class reference
3) an array reference can be cast to Cloneable interface
and Serializable interface if its a primitive array, but I don't remember if reference arrays can be cast to Serializable.
Bill