Generics: add type conversion