With that interpretive switch, sexual desire is redefined as desire for God, and the relationship between the lovers in the Songs as a metaphor for the relationship between God and God's elect community.
But is that metaphor sufficient to handle the imagery in the Songs?