Implemented "ToVector" method.