c# convert int into enum value code example Example: convert int to enum c# YourEnum foo = (YourEnum)yourInt;