Add convertToBoolean method