Welp was searching for an hour but as usual, found the answer right after posting. I need to say .Cast() in the types line,
var types = Enum.GetValues(typeof(MyEnum)).Cast<MyEnum>();