When William Stryker enters Magneto's plastic prison, where no metal is allowed, he is wearing eye glasses containing metal. Ie., Nose guard and arms of the glasses contained metal. First, Magneto would have taken advantage of the metal and would have used it to escape. Secondly the metal detectors that you have to be screened by to enter Magneto's plastic prison would have detected the metal in the eye glasses.