Castro sworn in to office