Define ParamHandler type for use in assertion

It's more idiomatic to define a dedicated type for use in the type assertion, especially
as this aids readability.