Example of using generic type reference instead of object reference