@Override
    public Tensor evaluate(EvaluationContext<NAMETYPE> context) {
        Tensor tensor = argument.evaluate(context);
        if (tensor.type().valueType() == valueType) {
            return tensor;
        }
        TensorType type = TypeResolver.cell_cast(tensor.type(), valueType);
        return cast(tensor, type);
    }
The <i>cell_cast</i> tensor function creates a new tensor with the specified cell value type.

@author lesters
vespajlib/src/main/java/com/yahoo/tensor/functions/CellCast.java