/** * @param <A> * @param path * @return */ @SuppressWarnings("unchecked") public <A extends Comparable<?>> DateTimePath<A> get(DateTimePath<A> path) { DateTimePath<A> newPath = getDateTime(toString(path), (Class<A>)path.getType()); return addMetadataOf(newPath, path); }