naive support to date casting in parser