add convert with template/without vector