Parse a string to an Enum value in VB.NET January 31, 2023 by Tarik Dim val = DirectCast([Enum].Parse(GetType(Gender), "Male"), Gender)