I have an `int` type data (an `INT` number like 15). To convert this into a 5 bits boolean array it becomes [1,1,1,1,0]

I have tried 

```
SELECT CAST(15 AS binary(5))

```

But I get a hex value instead:

```
0x0000000F

```

I would like to be able to select the corresponding bits, so it needs to be a boolean array. 

Thanks for any help