Stored as a var? Yes. But your call is trying to access from an array using a var/double (a floating point number), which is nonsense.

If you supply an int, it will be stored as a var anyways.