Searched the postgresql docs <http://www.postgresql.org/docs/8.4/interactive/functions-bitstring.html> for information on converting bit varying to integer

But couldnt' find any info. 

```
select '011111'::bit(4)::varbit(4)::integer as varbit

```

Appreciate your response.