Just a little tip or reminder about generic types erasure in Scala.
You can retrieve type information and get over erasure using an implicit Manifest. It is also very useful if you need to access the T type in your method code.
Example from the Scaladoc :