On Wed, 22 Jun 2011 00:02:55 +0000, Ali Çehreli wrote: > I wonder whether a UniqueRef object could be returned, which could allow > a single casting of its data to mutable or immutable at the call site. > Further casts could throw, but that would be a runtime solution. :-/ Further casts should return null. Timon