converting list<int> to int[]

c#

Solution

list.ToArray()

Problem

Is there builtin method that would do this or do I always have to manually create a new array and then fill it up with a foreach loop

Original source