Converting char to integer representation c#
<p>When I try to run the following code it always spits out the hex representation, not the integer representation. Most of the examples I found on MSDN said this should work. What am I missing?</p>

<pre><code>                var stringBuilder = new StringBuilder("8");
                int j = 0;
                foreach (char item in stringBuilder.ToString())
                {
                    j = Convert.ToInt32(item); //returns 38, need return to be 56
                }
</code></pre>

<p><em>edit</em>
I should have made clear that I know the difference it's returning the hex value. I'm outputting the value to a file, and in that file, it still shows the hex value, not the integer, so I don't think it has anything to do with the debugging environment.<br/><br/>
<em>edit2</em> Looks like a PEBKAC problem. Looked at the code that was writing to the file, and it was using a .toString("X") method, changing it to a Hex value. The fact that it was hex in my debug environment was what confused me.  </p>
