Added better boolean conversion routines