title: What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON'?
body: <p>What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON' for an x64 target build?</p>
  
  <p>In particular with a normal C-Style cast, I get this warning when compiling with an x64 config:</p>
  
  <p>warning C4312: 'type cast' : conversion from 'OLE_HANDLE' to 'HICON' of greater size</p>
  
  <p>Here is the offending code:</p>
  
  <pre><code>imgList.Add((HICON)ohIcon);
  </code></pre>
  
  <p><strong>The above code works fine for me, but I want to get rid of the warning when building for x64.</strong> </p>