You can dynamic_cast it to the more specialised parameter type.
dynamic_cast
Something like this would do the job: