It’s going to be a bit tough considering that the Chromecast protocol is being used by pretty much every Android app.
I’m not aware of any open source app that can pose as a Chromecast on the network and/or convert the protocol to DLNA, but maybe I haven’t searched enough.