Fix pointer arithmetic (cast)