A cast to (uint8_t *) was required for compiling simulators.