Convert wchar_t to char
<p>I was wondering is it safe to do so?</p>

<pre><code>wchar_t wide = /* something */;
assert(wide &gt;= 0 &amp;&amp; wide &lt; 256 &amp;&amp;);
char myChar = static_cast&lt;char&gt;(wide);
</code></pre>

<p>If I am pretty sure the wide char will fall within ASCII range.</p>
