title: C4267: 'return' : conversion from 'size_t' to 'const UINT', possible loss of data
body: <p>How to resolve below warning using typecast to const UINT?</p>
  
  <p>C4267: 'return' : conversion from 'size_t' to 'const UINT', possible loss of data</p>
  
  <pre><code>Class CManager
  {
     std::vector&lt;CString&gt;    m_ncount;
     public:
      const UINT GetMCount( int nInst) const;
  }
  
  
  const UINT CManager::GetMCount( int nInst) const
  {
       return m_ncount.size();//C4267
  }
  </code></pre>
  
  <p>Is this correct?:</p>
  
  <pre><code>const UINT CManager::GetMCount( int nInst) const
  {
       return (const UINT)m_ncount.size();//C4267
  }
  </code></pre>