As the first in his family to attend college, Castro earned a bachelor's degree in political science in 1988 and a master's degree in public policy in 1990 from the University of California, Berkeley.