fix issue 8119 - Cannot cast from void* to forwarded struct pointer
Merge pull request #2378 from hpohl/8119

fix issue 8119 - Cannot cast from void* to forwarded struct pointer