This actually shouldn't handle this execption; if the wrong type is passed, it's a programming error and should be allowed to propagate and result in a 500.