Exception thrown if an argument is not of the expected type.