Get Enum member from int

I have an enum called : Actions and it looks like :

public enum Actions { sleep = 1, food = 2, lookForFood = 3, lookForSleep = 4, wander = 5 };

My question is if there is a way to get the enum member from their int. Example:

Actions(1); // Return sleep

You can typecast the int…

Actions value = (Actions)1;