I've tried... and invoked ChatGPT... and can't QUITE do it.
Ye good old "T could be instantiated with an arbitrary type which could be unrelated to ...". I tried a few tricks I sorta know and they failed (messing with T, making obj a different type parameter that's broader so the inferred T is actually the desired output type, creating a new type parameter that has a default, and so on and so forth...)