Fix passing argument from incompatible pointer type