I have a BusinessObject in my data sources and in a user defined function (C#) I am trying to convert the business object back to its original type using this code :
Code: Select all
System.Collections.ObjectModel.Collection<Cypher1.EstimateSection> FullSectionList = SelectedEstimate.FullSectionList as System.Collections.ObjectModel.Collection<Cypher1.EstimateSection>;
What have I done wrong?The error of compilation is found in the 'Schedule Of Rates Detailed' report: Compilation error: Cannot convert type 'Reports.Report.SelectedEstimateBusinessObject.FullSectionListBusinessObject' to 'System.Collections.ObjectModel.Collection' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion