@Override
    protected Object execute(Object[] data, State state) {
        if (returnType == Attribute.Type.LONG && data[0] instanceof Integer) {
            return ((Integer) data[0]).longValue();
        }
        return data[0];
    }
Executor class for Siddhi cast function. Converts the given parameter according to the castTo parameter.
Incompatible arguments cause {@link ClassCastException} if further processed.
modules/siddhi-core/src/main/java/io/siddhi/core/executor/function/CastFunctionExecutor.java