Remove an unnecessary cast in the param to BUF_MEM_grow