title: correctly fixing conversion and loss of data warnings?
body: <p>I have a class called <code>PointF</code> and it has a constructor that takes a <code>Point</code>, and I keep getting "possible loss of data warnings". How can I show that my intention is in fact to make a <code>float</code> value into an <code>int</code>, among other tings? I tried <code>static_cast</code> and <code>(float)</code> but they did not fix the warning.</p>
  
  <p>For example:</p>
  
  <pre><code>int curPos = ceil(float(newMouseY / font.getLineHeight())) ; //float to int
  </code></pre>
  
  <p>And</p>
  
  <pre><code>outputChars[0] = uc; //converting from size_t to char
  </code></pre>