add support for Long and Duration conversions