Support generic type.