title: Cast from object to int loses precision C++
body: <p>In my TimeCode.h I have following : </p>
  
  <pre><code>inline TimeCode::operator int() const;
  </code></pre>
  
  <p>Which should be able to execute whenever I cast TimeCode object to int. </p>
  
  <p>But when I do something like :</p>
  
  <pre><code>(int) firstTimeCode &gt; (int) scndTimeCode
  </code></pre>
  
  <p>The compiler throws the following error at me :</p>
  
  <pre><code>cast from 'TimeCode*' to 'int' loses precision [-fpermissive]
  </code></pre>
  
  <p>Does anyone know what is the problem and how it can be fixed ? Thank you very much in advance !</p>