I have a custom class vtools.Image that extends BufferedImage.
Then I am reading a picture from a url using ImageIO.read and sacing this as BufferedImage.
BufferedImage bfImg = ImageIO.read(imageUrl);
but then I would need to convert this bfImg into vtools.Image but when I try to cast it I am getting a ClassCastException error. What is the other way of converting these two?