Convert all C++ interfaces to the IByteArray class.