Fix a linked casting issue that requires Activity over Context