Converting DataView to DataTable in C#

Consider following code for converting DataView to DataTable in C#

DataTable dt = dv.ToTable();// dv = Data View

Consider following example

public DataTable GetFilterData(DataTable dt)
{

if (dt != null)
{
DataView dataView = dt.DefaultView;
dataView.RowFilter = filterCondition; //some condition like": ColumnName like '%this%'; 
dt = dataView.ToTable();
}
return dt;
}