Char to int conversion to get ASCII
<p>This may be an immature question, may be am missing something but my question is</p>

<p>Trying convert a char to int to get the ASCII value of that char, in most cases i get correct/expected ASCII code for particular char, in some cases i don't. Can someone explain me why? Examples</p>

<pre><code>Example 1:-   

Console.WriteLine((int)'a');

gives me 97 perfect!

Example 2:-

Console.WriteLine((char)1); gives me ☺

now 

Console.WriteLine((int )'☺');

this should give me 1, instead it gives me 9786 why?
</code></pre>

<p>this happens to ASCII>127 or ASCII&lt;32.</p>
