Making generics more convenient