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
Greinke leads Diamondbacks past Pirates for 4-game sweep
Zack Greinke and two Arizona relievers allowed five hits in a 5-0 victory over the Pittsburgh Pirates on Thursday that secured a four-game sweep for the Diamondbacks.
Greinke, Dyson stroke back-to-back triples
Zack Greinke smokes the first triple of his career off the wall in right field, then Jarrod Dyson brings him home with a triple of his own.
Shuck robs Escobar's homer to left
Eduardo Escobar skies a pitch to left field, but JB Shuck leaps at the wall to take away a home run in the 7th inning.
Yankees acquire Maybin in trade with Indians
Already without injured outfielders Clint Frazier, Aaron Judge, Giancarlo Stanton and Aaron HIcks, the Yankees acquired veteran Cameron Maybin from the Indians for cash considerations.
Fantasy baseball daily notes: Pitcher and hitter rankings for Friday
Prepare your fantasy baseball lineups confidently with our daily preview, including pitcher projections, hitter matchup ratings and more.
Epstein: 'No finish line' on Russell return to Cubs
The Cubs could keep Addison Russell in the minors by optioning him to Triple-A after his 40-game suspension for violating the league's Joint Domestic Violence, Sexual Assault and Child Abuse Policy is up.