c# get value of object in enum

C#
arrayName variable = (arrayName) index
//for example
Days day = (Days)3;
Source

Also in C#: