castration doesnt stop them abusing children if they are evil enough to want to abuse. It might reduce sexual urge but not necessarily desire to abuse.
It wont do anything to stop those who make the concious decision to sexually abuse children.
lock them up and throw away key is only safe way. Copious amounts of ECT wthout anaesthetic might help fuck them up a bit.