to_value for true and false node
to_value for int and range node