Check out example codes for "cannot convert string to generic type c#". It will help you in understanding the concepts better.

Code Example 1

T newT1 = (T)(object)"some text";
string newT2 = (string)(object)t;

Learn ReactJs, React Native from akashmittal.com