Shouldn't this be something stronger, like at least an assertion that it has the expected type?