title: Is it safe to typecast unsigned short to wchar_t and vise versa?
body: <p>Hello
  I am migrating project from Visual studio 6.0 to Visual Studio 2005.</p>
  
  <p>The problem i am facing is ths ... in VS 6.0 <code>wchar_t</code> was simply typecast of <code>unsigned short</code> but in VS2005 <code>wchar_t</code> is built in data type.</p>
  
  <p>In project previous programmers have used wchar_t and unsigned short intechangibally. 
  But in Vs 2005 it showing errors like cannot convert from <code>wchar_t</code> to <code>unsigned short</code> and vise versa.</p>
  
  <p>So my question is can we safely cast <code>wchar_t</code> to <code>unsigned short</code> and vise versa or we need use functions like mbstowcs and wcstombs ?</p>