`buf.extractData()` returns `char *`, so cast is not need.