Castellanos had three hits and scored three times. Bryson Stott also had three hits and Brandon Marsh drove in three runs for the Phillies, who claimed their first NL East title in 13 years on Monday night.
RELATED: Here's how Phillies clinched first-round bye in playoffs
Coupled with Milwaukee's 2-1 loss to Pittsburgh, Philadelphia secured the bye and home-field advantage in the NLDS. The Phillies owned the tiebreaker with the Brewers after winning the season series against the NL Central champions.
The first NLDS game will be held on October 5 at Citizens Bank Park.
In the race for No. 1 seed
Philadelphia will finish the regular season as the No. 1 or No. 2 seed depending on the Dodgers' record.
READ MORE: Phillies clinch first NL East title since 2011 with 6-2 win over Cubs
The final three games will be held Friday, Saturday and Sunday against the Washington Nationals.
Philadelphia can clinch home-field advantage through the NL Championship Series by ending the season tied with or ahead of the Los Angeles Dodgers.
The Phillies entered the last two postseason runs via the Wild Card round. In the that round, which begins October 1, the No. 3 seed faces the No. 6 seed , the the No. 4 seed faces the No. 5 seed.
Here's a look at the postseason picture as we enter the final week of the regular season.
Phillies' NLDS schedule
- Game 1: Saturday, October 5 / at Citizens Bank Park
- Game 2: Sunday, October 6 / at Citizens Bank Park
- Game 3: Tuesday, October 8 / Phillies travel to opposing team's ballpark
- Game 4: Wednesday, October 9 / Phillies travel to opposing team's ballpark (If necessary)
- Game 5: Friday, October 11 / at Citizens Bank Park (If necessary)
How to get tickets
Fans can now register for an opportunity to purchase tickets to playoff games at Citizens Bank Park.
"Given that our season ticket base has doubled to 20,000 in the past two years, ticket availability will be extremely limited through this opportunity," said Phillies Senior Vice President of Ticket Operations & Projects John Weber.
Only fans whose registration is selected in the random drawing will have the opportunity to purchase tickets.
You can now register at phillies.com/postseason.
Registration for all rounds of the postseason will end on Saturday, October 12, at 11:59 p.m. EDT.
The Associated Press contributed to this report.