// CastToDayTimeInterval takes an interface{} type or any Object type and
// attempts to convert it to the DayTimeInterval Object type.
CastToDayTimeInterval takes an interface{} type or any Object type and
attempts to convert it to the DayTimeInterval Object type.
// CastToDayTimeInterval takes an interface {} type or any Object type and // attempts to convert it to the DayTimeInterval Object type .
func CastToDayTimeInterval(v interface{}) (DayTimeInterval, bool) {
	switch pt := v.(type) {
	case *DayTimeInterval:
		return *pt, true
	case DayTimeInterval:
		return pt, true
	case *arrow.DayTimeInterval:
		t := *pt
		return DayTimeInterval(t), true
	case arrow.DayTimeInterval:
		t := pt
		return DayTimeInterval(t), true
	case *Boolean:
		t := *pt
		return func(t Boolean) DayTimeInterval {
			if t {
				return DayTimeInterval(arrow.DayTimeInterval{Days: 0, Milliseconds: 1})
			}
			return DayTimeInterval(arrow.DayTimeInterval{Days: 0, Milliseconds: 0})
		}(t), true
	case Boolean:
		t := pt
		return func(t Boolean) DayTimeInterval {
			if t {
				return DayTimeInterval(arrow.DayTimeInterval{Days: 0, Milliseconds: 1})
			}
			return DayTimeInterval(arrow.DayTimeInterval{Days: 0, Milliseconds: 0})
		}(t), true
	default:
		return DayTimeInterval(arrow.DayTimeInterval{Days: 0, Milliseconds: 0}), false
	}
}
func CastToDayTimeInterval ( v interface { } ) ( DayTimeInterval , bool ) { switch pt := v . ( type ) { case * DayTimeInterval : return * pt , true case DayTimeInterval : return pt , true case * arrow . DayTimeInterval : t := * pt return DayTimeInterval ( t ) , true case arrow . DayTimeInterval : t := pt return DayTimeInterval ( t ) , true case * Boolean : t := * pt return func ( t Boolean ) DayTimeInterval { if t { return DayTimeInterval ( arrow . DayTimeInterval { Days : 0 , Milliseconds : 1 } ) } return DayTimeInterval ( arrow . DayTimeInterval { Days : 0 , Milliseconds : 0 } ) } ( t ) , true case Boolean : t := pt return func ( t Boolean ) DayTimeInterval { if t { return DayTimeInterval ( arrow . DayTimeInterval { Days : 0 , Milliseconds : 1 } ) } return DayTimeInterval ( arrow . DayTimeInterval { Days : 0 , Milliseconds : 0 } ) } ( t ) , true default : return DayTimeInterval ( arrow . DayTimeInterval { Days : 0 , Milliseconds : 0 } ) , false } }
CastToDayTimeInterval takes an interface{} type or any Object type and
attempts to convert it to the DayTimeInterval Object type.
CastToDayTimeInterval takes an interface {} type or any Object type and attempts to convert it to the DayTimeInterval Object type .
// Also handles when v is nil