Yours is getting converted to string because of those braces @{...} around your function in code view. Try removing the action and redeclaring the variable it should work. still, if it does not, explicitly use 'createArray(range(0,10))' function to convert it to an array.