ahh.. well, if the list is a simple implementation...
# codereview
a
ahh.. well, if the list is a simple implementation like ArrayList it would be “ok” to simply recast it, because of erasure. Tbh I didn’t think of that, I assumed the declared type was going to be the same