char and int in Java
<p>I was surprised to see this code work.  I thought that char and int were two distinct data types in Java and that I would have had to cast the char to an int for this to give the ascii equivelent.  Why does this work?</p>

<pre><code>String s = "hello";
int x = s.charAt(1);
System.out.println(x);
</code></pre>
