> LINK ia = (LINK)a;
These should be
LINK *ia = (LINK*)a;

And in the body of the code, use
(*ia)->member