csharp generic cast cant convert type to t code example
Example: cannot convert string to generic type c#
T newT1 = (T)(object)"some text";
string newT2 = (string)(object)t;
T newT1 = (T)(object)"some text";
string newT2 = (string)(object)t;