code: public static <T extends Comparable<?>> DateTimeExpression<T> asDateTime(Expression<T> expr) {
          Expression<T> underlyingMixin = ExpressionUtils.extract(expr);
          if (underlyingMixin instanceof PathImpl) {
              return new DateTimePath<T>((PathImpl<T>) underlyingMixin);
          } else if (underlyingMixin instanceof OperationImpl) {
              return new DateTimeOperation<T>((OperationImpl<T>) underlyingMixin);
          } else if (underlyingMixin instanceof TemplateExpressionImpl) {
              return new DateTimeTemplate<T>((TemplateExpressionImpl<T>) underlyingMixin);
          } else {
              return new DateTimeExpression<T>(underlyingMixin) {
  
                  private static final long serialVersionUID = 8007203530480765244L;
  
                  @Override
                  public <R, C> R accept(Visitor<R, C> v, C context) {
                      return this.mixin.accept(v, context);
                  }
  
              };
          }
  
      }
docs: Create a new DateTimeExpression
  
  @param expr the date time Expression
  @return new DateTimeExpression