EnumToObjectTests This project shows a bug in NET8.0, where Enum.ToObject(typeof(MyEnum), 3.0) does not throw an ArgumentException.