Castillo's contract was purchased by the Marlins on Friday.
The 35-year-old has just 37 big-league plate appearances to his name, none of which have come since 2009. He'll back up Bryan Holaday with both Jorge Alfaro and Chad Wallach recovering from concussions.