Added vector conversion method.