public static NColumn <N, V> ToNColumn <N, V>(Column column) { NColumn <N, V> ncolumn = new NColumn <N, V>(); ncolumn.Name = (N)column.Name.ToObjectFromByteArray(typeof(N)); ncolumn.Value = (V)column.Value.ToObjectFromByteArray(typeof(V)); ncolumn.ValueBytes = column.Value; ncolumn.NameBytes = column.Name; return(ncolumn); }