Since you absolutely show no code whatsoever, much less a Simple, Self-Contained Compilable Example (SSCCE
http://sscce.org/), I'll guess, but the lack of information you provide may cause me to miss the mark. (Follow the advice in
http://sscce.org/.)
Subclassing 'BufferedImage' is almost certainly a mistake, but without knowing your reasons or what changes you made it's hard to be 100% certain. Still, I'd take 10:1 that you should "favor composition over inheritance". (
http://java.sun.com/docs/books/effective/) That is, use a class that has a member reference to a 'BufferedImage' rather than extending it.
As for the downcast, I'll take 100:1 odds that you created a 'BufferedImage' that was not a 'SubImage' then tried to downcast it. You can only downcast a reference if it points to an instance of the subtype. Otherwise you get a 'ClassCastException'. You did get a 'ClassCastException', right? You didn't even bother to tell us that much, much less what the message said or what code it applied to.
To answer your questions: Yes, you should be using another design. Maybe even if you give us more information we could help you figure out what that other design should be. Like, what are you trying to accomplish, and why did you imaging subclassing 'BufferedImage' would help, and *WHAT IS YOUR CODE?* (
http://sscce.org/) (Note the "Self-Contained" in that initialism's expansion!)
The way to get around your problems (there are more than one), read the Oracle tutorials about inheritance and casting in Java. Buy and study (repeatedly) the book /Effective Java/, 2nd ed., by Joshua Bloch, referenced above.
Somebody have the FAQ for asking smart questions handy? Between that and
http://sscce.org/ we should be able to help this guy if he follows that advice.
So: Don't extend 'BufferedImage'. Don't try to downcast unless you know the instance is of the proper subtype. Do tell us what you want to accomplish, rather than merely how you imagined you should accomplish it. Do study diligently the tutorials, /Effective Java/ and
http://sscce.org/.
--
Lew