> >> + return ireg ? true : false; > > > > return ireg; > > > > ? > > How about !!ireg? Better. Still, I wonder how this cast is gonna be different from the cast being done because the return value is declared bool.