Transferring music across platforms

It had never occured to me that transferring music from an iPhone to an Android-powered smartphone, was actually possible. Has anyone tried this before? I think the advancement of technology is offering us endless options and we can only imagine how the next few years, could unfold.