There probably is no cast. You can write a small helper function to firmat the data as string, see How to convert opencv mat into string c++ - Stack Overflow
There probably is no cast. You can write a small helper function to firmat the data as string, see How to convert opencv mat into string c++ - Stack Overflow