Support for automatic upcasting of pointer parameters passed to C++.