I notice a lot of people are recommending Convert.ChangeType
- This does work for some cases however as soon as you start involving nullable
types you will start receiving InvalidCastExceptions
:
A wrapper was written a few years ago to handle this but that isn't perfect either.