clr interface for implements the as.vector function in R# language