public static VolSurfMktData ToVolSurfMktData(this ImpliedVolSurface volSurface, string id) { return(new VolSurfMktData(id, volSurface.RowGrid, volSurface.ColGrid, volSurface.ValueOnGrids, volSurface.getInterpolationMethod(), volSurface.getVolSurfaceType())); }