Garrisoning relics in other buildings?

Hello everyone, I’m trying to make a civ bonus that allows you to garrison relics in Castles. For that, I made an effect that upgrades the Monk With Relic into a version of itself that has the Drop Relic command, but with Castles as a target. However, this does not seem to work. Any help would be most welcome.