Fixed convertion from Time/Date/DateTime to integer, float and double types.