Set helper to value of sensor

I need both numbers and booleans. The requirement originated from this issue here:

I found a solution without the need for these helpers.

But for reference I just want to know: How can i set an input_boolean to the state of a binary_sensor?