If this doesn't get checked earlier, should be TypeError.