if you wanna output the items in the array you have to iterate over them and output each item, instead of just doing Console.WriteLine(ToDoubleArray(abc));Console.WriteLine(ToDoubleArray(abc)); which will just output something like "Array<double>" or similar