fix parsing errors by casting all data to integers and looking for bad conversions