Connectivity reads it as integer from the server and then converts it to a Boolean because your simulation variable is a Boolean signal (or Boolean signal in a Signal map in this case).
You can get the value to an integer signal or integer property just as easily, but using it inside a KRL program requires ugly hacks because of KUKA’s limitations.