Convert to size_t[].
static bool[] ba = [1,0,1,0,1]; auto a = StaticBitArray!5(ba); void[] v = cast(void[])a; assert(v.length == a.dim * size_t.sizeof);
See Implementation
Convert to size_t[].