Convert between number and array of bit buses