well, it's a pain and I don't have that much room for conversion 'cause the param you enter in cc when you use the plugin are input in the plugin via either simple int or string (as far as I know param[0].GetInt() or param[0].GetString() are the function used to retrieve the param). I'm not knowledgeable enough to know if I can create my own GetLongInt() function to handle that.
And anyway, dec2bin and bin2dec really are just for checking how bitwise operation works, you really don't need that in the code itself.
you will do a 8 and 4 (knowing that "binarily" it is 1000 and 100) If you do a bin2dec(1000) and bin2dec(100) instead, you lose all the speed and efficiency of bitwise operation.