RecordList in record

I have recordlist in one record(i.e pipeline have record but during runtime thid record contain recordlist)Iam trying to use record to recordlist But Iam getting classcast exception.
thanks
mike