performance overhead of typecasting variables in C
<p>I have seen people recommending to avoid typecasting of variables as much as possible in high performing applications. I never understood the reason for this and I tend to typecast lot of times mostly to avoid compiler warning. Does this have any implications on performance?.
Commonly seen code:</p>

<p>1) <code>struct X *</code> pass to a function which takes <code>void *</code></p>

<p>2)<code>uint16_t</code> typecasted to <code>uint32_t</code> </p>