added cast function for timestamp type
Merge pull request #1340 from crate/h/timestampconversion

added cast function for timestamp type