Upgrade nuget.
Explicitly convert Enum types to their underlying primitives because Convert.ChangeType evidently doesn't know how.