equivalent to unbinary() in processing?

In processing, this can be done very easily with the unbinary() function

I thought unbinary converted ASCII strings representing binary numbers into numbers?