Coerce validator now handles TypeErrors