added cast function for timestamp type

you shouldn't need to cast each type if you do   Arrays.<DataType>asList(DataTypes...)