unity Javascript to C# Array Conversion

Hi I am New to Unity.
I got some codes of unity games in javascript. I tried to convert that into C#.
But, In Array part of conversion i was confused.

var pointArray : Array;
pointArray[0]= tempInt;
pointArray[1] = tempInt;
pointArray[5] = tempFloat;

So, We can Assign both integer and float values into the pointArray.

How to convert this type of code into C#??

Arrays in C# are strictly single type. You can’t have different elements being different types. In this case you’d just declare it as

float[] pointArray = new float[maxsize];

and save the int values as floats.

Accessing values (or setting them) is simply

float f = pointArray[3];

pointArray[27] = f;