The following seems to work as well, and it’s a little bit shorter than the other answers:
T result = (T)Convert.ChangeType(otherTypeObject, typeof(T));
The following seems to work as well, and it’s a little bit shorter than the other answers:
T result = (T)Convert.ChangeType(otherTypeObject, typeof(T));