Added functionality to support calling a method with unknown parameter type.