Add bool cast to appease ST3