[nativecall.c] add a cast to get rid of a warning