Add explicit cast for pointer-arith