OK I get it. Yes it's possible a user specify a wrong type in `setParameter($key, $value, $type)`, in that case is it better to silently ignore the type given (actual) or have an error of type not found (if the check was removed)?

I'd go for the second actually.