Make ParamValidationExt use the actual type instead of a void pointer