title: Android : Cannot cast from View to Button
body: <p>I just started working with the Android, but seem to have come across a problem that I simply can't find the answer to.  I get the error "Cannot cast from View to Button" on this line :</p>
  
  <pre><code>Button myButton = (Button)findViewById(R.id.my_button);
  </code></pre>
  
  <p>I've tried many different things to get it going, and I've searched for the answer, but for some reason it just refuses to work right.  If anybody could point me in the right direction it'd be most appreciated.</p>
  
  <p>Thank in advance.</p>