type conversion better use of bifs