Cast alloc_cb explicitly

The implicit cast would have caused it to overrun the callback limit.