renaming CastError --> InputError
privatizing ValueTypeError (and renaming for clarity given the only place it's used