java objects conversion
<p>I have a custom class vtools.Image that extends BufferedImage.</p>

<p>Then I am reading a picture from a url using ImageIO.read and sacing this as BufferedImage.</p>

<pre><code>BufferedImage bfImg = ImageIO.read(imageUrl);
</code></pre>

<p>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?</p>
