cannot apply indexing with to an expression of type 'object'

C#
List<float> RetornaEmList(float a,float b,float c, float d, float e)
{
    return new List<float> { a, b, c, d, e };
}float a= (float)((ArrayList)paredes[i])[0];
Source

Also in C#: