it took me a while but I finally figured out this is where the casting happens.  Because of your clever use of boolean return values to make this return boolean it was obfuscated a bit.  Perhaps a comment to help future spelunkers?