public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType) { if (destType == typeof(string) && value is iPen) { // Cast the value to an Employee type iPen emp = (iPen)value; // Return department and department role separated by comma. return(emp.ToString()); } return(base.ConvertTo(context, culture, value, destType)); }