Problem with Toggle Switch Input

I guess that I do not understand. You wanted a "single output variable". That does not sound like an array. What is the data array to contain?

I took "single output variable" to mean the numeric representation of the binary pinValues.