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

http://d.puremagic.com/issues/show_bug.cgi?id=8119