I'd advise against it. Most sunglasses lenses, especially the cheap ones, are made out of low quality plastic that can develop cracks in the lenses when they get hot. Also heating them up to the point where they might become malleable, if there's any coating on the lenses, that can flake off.