If you need to cast a generic type parameter to a specific type we can cast it to a object and do the casting like below,
void SomeMethod(T t) { SomeClas
You can use Convert.ChangeType
SomeClass obj2 = (SomeClass)Convert.ChangeType(t, typeof(SomeClass));
Although, keep in mind that this will throw an exception if a cast is invalid.