list of enum types to array?

I’ve been struggling for a while now with enumerators.

I’m building a menu, that hopefully builds itself from the ‘types’ of enumerator.

But i’m getting stuck trying to get a list of the types.

I need something like this -

	windowOneArray = System.Enum.GetNames(typeof(items.types));

But instead of having a string array. I’d like an array of ‘enumVar’ , so then I can loop through my inventory and show gui elements based off their ‘type’ , for example, so only items with the type ‘Note’ will be displayed

Thanks for any help, this has me in a really annoying spot.
I’ve been through the unity docs and the c# docs, but i’ve not found an answer yet

example of the ‘types’ :

	public int id; 
	public string name; 
	public string description; 

	public types enumVar;

	public enum types



EDIT: A clearer example of my problem would be this, or at least this is a way I tried, but it all comes back to System.Enum.something returning things as an
“Cannot convert type System.Array' to items.types’”

items.types[] tempENUMS;

 void someFunction(){

		tempENUMS = (items.types)System.Enum.GetValues(typeof(items.types));


You can use a string array. Use Enum.parse to convert the string to an enum value.

menuItems = Enum.GetNames(typeof(items.types));
	for (int i = 0; i < menuItems.Length; i++) {

		switch (Enum.Parse(typeof(items.types), menuItems*)) {*
  •   		// add each case here*
  •   	}* 
  •   }*