There is a hack available somewhere on XDA to add the Libraries needed to support GoogleCast functions in Android.
It requires ADB and not sure what versions of the OS it is compatible with.
I would look in the Android TV or Hacks section.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service