xkbcomp: remove cast which triggers warning on gcc