Reply to Saaa, > > b=cast(Banana)fruits[1].peel(); > I'm not shure that will work. IIRC DMD reads that as b=cast(Banana)( fruits[1].peel() );