select '10000'::BIT::INT; #=> 16