Revert "#176 Removed as_vector"

This reverts commit 8648392d623fac210fe8ca17363fcf13fc439270.