title: Does typecasting consume extra CPU cycles
body: <p>Does typecasting in C/C++ result in extra CPU cycles?</p>
  
  <p>My understanding is that is should consume extra CPU cycles atleast in certain cases. Like typecasting from float to integer where the CPU should require to convert a float structure to integer.</p>
  
  <pre><code>float a=2.0;
  int b= (float)a;
  </code></pre>
  
  <p>I would like to understand the cases where it would/would not consume extra CPU cycles.</p>