Castillo tossed 6 2/3 shutout innings and combined with two relievers on a two-hitter to lead the Reds to a 4-0 win over the St. Louis Cardinals.
Barnhart said working with Castillo was easy.
"(He has) video game stuff," Barnhart said. "Tonight was an example of that. He was able to throw all three pitches for strikes. He was able to keep them off balance all night long."
The Reds snapped a three-game losing streak.
St. Louis, which won a major league-best 22 games in August, lost for the second time in six games.
The Cardinals are 4 1/2 games behind Chicago in the NL Central after the Cubs beat Philadelphia 7-1.
Castillo (8-11) gave up two hits and struck out a career-high 11. He gave up a leadoff single to Matt Carpenter in the first before retiring 15 of the next 16 hitters.
Castillo has had an up-and-down season and has struggled with consistency.
"We feel like he can do this," Cincinnati interim manager Jim Riggleman. "He's not 21, he's 25. It's time. We just hope he builds on that, has a good September, and takes us into 2019 as a guy that can anchor our staff."
Castillo had given up five earned runs in two of his last three starts.
"A good part was I was on the same page with Tucker," Castillo said. "He was calling the right pitches. I was throwing the right pitches. That was a big part of my success.
Castillo was making his 27th start of the season and said this might have been his best performance to date.
"I've had a couple good ones, but I felt really, really good in this one," Castillo said. "I faced a really good team that's trying to get into the playoffs. To be able to perform and do what I did tonight was really good for me."
Suarez keyed a three-run outburst against Daniel Poncedeleon (0-1) in the fourth. Joey Votto broke the scoreless tie with a run-scoring double. Scooter Gennett followed with a hit to set the stage for Suarez's drive off the wall in left. Suarez, who has hit safely in 11 successive games against St. Louis, pushed his RBI total to 98,.
Barnhart added a run-scoring single in the seventh.
Poncedeleon, in his third major league start, retired the first 10 batters he faced on 43 pitches. But the next six hitters reached safely ending his night after 3 1/3 innings. Poncedeleon gave up three runs on five hits. He struck out four and walked one.
"I think I lost the arm slot on my fastball," Poncedeleon said. "I was searching out there."
St. Louis has won 20 of its last 26 and has a 29-14 record since manager Mike Shildt took over for Mike Matheny on July 15.
Cardinals: OF Marcell Ozuna was activated from the 10-day disabled list prior to the contest. Ozuna has been bothered by right shoulder inflammation. He is expected to start on Sunday.
RHP Adam Wainwright tossed five shutout innings in a rehab outing with Triple-A Memphis in Nashville on Saturday. He gave up five hits, struck out seven and walked two in a 90-pitch outing. Wainwright has missed 98 games with elbow inflammation.
RHP Anthony DeSclafani (7-4, 4.34) will face Luke Weaver (7-11, 4.59) in the final game of the three-game series on Sunday. DeSclafani has gone at least six innings in each of his last five starts with a 3-1 record and a 2.62 ERA over that span. Weaver is 3-0 lifetime against the Reds.
More AP baseball: https://apnews.com/tag/MLBbaseball
Five moves we want to see this offseason
Corey Kluber and A.J. Pollock turning the Reds into contenders? A swap of former No. 1 prospects? Dallas Keuchel teaming up with Manny or Bryce? Here's how we're hoping the rest of the hot-stove season plays out.
Anaheim votes in favor of 1-year lease extension for Angels
The City of Anaheim voted in favor of a one-year extension of the Angels' stadium lease. The club will play in Angel Stadium through 2020.
Champion Red Sox to visit White House during spring training
The World Series champion Boston Red Sox will visit the White House on Feb. 15 and will also visit the Walter Reed National Military Medical Center during the trip.
Matt Shepard taking over play-by-play for Tigers' TV broadcasts
Matt Shepard is taking over as play-by-play announcer for the Detroit Tigers on their Fox Sports Detroit television broadcasts.
Giants hire pitching analyst to aid with training efforts
Matt Daniels, the pitching coordinator for Driveline Baseball in Seattle, is joining the San Francisco Giants as an analyst to aid in the training of the team's pitchers.
How baseball shaped the career of Patrick Mahomes
Chiefs QB Patrick Mahomes and former MLB superstar Alex Rodriguez each tell the story of their relationship and how Mahomes came to choose football.