[c#] Cast object to T

You can presumably pass-in, as a parameter, a delegate which will convert from string to T.