fix issue 10834 - cannot use cast(void)expr if the type of expr is a struct

http://d.puremagic.com/issues/show_bug.cgi?id=10834