I didn't really investigate down that road, can pull it out (or just initialize dt here). This change makes the string -> datetime cast behave like a string -> int cast on error though (stop at the first error, if that is during buffering, nothing happens). The stransfer functions can't currently give an error return...