title: Casting objects in Java
body: <p>I'm confused about what it means to cast objects in Java.</p>
  
  <p>Say you have...</p>
  
  <pre><code>Superclass variable = new Subclass object();
  (Superclass variable).method();
  </code></pre>
  
  <p>What is happening here? Does the variable type change, or is it the object within the variable that changes? Very confused.</p>