Add generic type to List.