@Override
    protected StateFactory init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader,
                                SiddhiQueryContext siddhiQueryContext) {
        if (attributeExpressionExecutors.length == 1) {
            expectEventObject = true;
        }
        return null;
    }
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/EventTimestampFunctionExecutor.java