Improve namedtuple's _cast() method with a docstring, new name, and error-checking.
3 files changed