Debugged bool to short conversion