title: What does (Object) do in java?
body: <p>I watched a tutorial on 2D game engine design in YouTube and there is this line:</p>
  
  <pre><code>private int[] pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
  </code></pre>
  
  <p>I know that the pixels are supposed to contain integer list of colors for the image but I don't understand how the data of the pixels got into the image since in the tutorial this is the only line where pixels are used.</p>
  
  <p>So is (DataBufferInt) means I am connecting pixels to the data of type DataBufferInt in the image?</p>