cast to correct type, fix warning: apedec.c:859: warning: passing argument 1 of ...