public static <T> ToDouble<T> castIntToDouble(ToInt<T> original) {
        class IntToDouble extends CastToDouble<T, ToInt<T>> {
            private IntToDouble(ToInt<T> tToInt) {
                super(tToInt);
            }

            @Override
            public double applyAsDouble(T object) {
                return inner.applyAsInt(object);
            }
        }

        return new IntToDouble(original);
    }
Returns an expression that wraps the specified expression and casts the
result from it into a {@code double}.

@param original  the original expression
@param <T>       the input type
@return          the new {@link ToDouble} expression
runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/internal/expression/CastUtil.java