How to convert Var to ArrayList : Connot convert from var to ArrayList

    This is my model class to access the datagrid row details.
    
    public class pojo
            {
                public string Prefix { get; set; }
                public int Year { get; set; }
                public int Quarter { get; set; }
                public int SerialNo { get; set; }
                public string From { get; set; }
                public string To { get; set; }
                public string PeriodName { get; set; }
            }
     
got all the cell values by using the below code...
I read the row details from datagrid(calendarmstrDG) by using the below format
    how to convert var to Arraylist..?

    var rowdata = calendarmstrDG.SelectedItem as pojo;
    
     