parses valtype generics