Make pointer cast explicit to compile from C++.