Added to_CvArr abstraction.