title: When using Win32 code in your modern C++ app, should you use proper casting?
body: <p>For example the following cast can be found littered throughout the MSDN documentation:</p>
  
  <pre><code>(LPTSTR)&amp;lpMsgBuf
  </code></pre>
  
  <p>Should I bother converting that to:</p>
  
  <pre><code>static_cast&lt;LPTSTR&gt;(&amp;lpMsgBuf);
  </code></pre>
  
  <p>Or should I just leave all the idiomatic C-esque Win32 portions as they are typically found in the docs, and save the more idiomatic C++ style/usage for the rest of my code?</p>