tovector conversion