587588589590591592593594595596597
Instant inst = (Instant) val; if (inst.getType() != Instant.Type.Time) { return inst.switchTo(zone).toDate(); } } throw createCoercionException(val.getClass(), Date.class);