8x8 LED matrix String to Byte conversion

So this function outputs "B00000001" and I would like to convert this into a compatible form that the 8x8 led matrix can take. Is there casting?

No. You stupidly converted a binary value to a string. You get to do it the hard way, and convert that string back to a binary value.