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
Mauer gives tearful thank you during retirement speech
Joe Mauer gives an emotional thank you to Terry Ryan for drafting him to the Twins back in 2001.
Joe Mauer officially bids Twins farewell in tear-filled news conference
Twins legend Joe Mauer formalized his goodbye to baseball on Monday at a tear-filled yet cheerful news conference to wrap up a 15-year major league career at age 35.
Ronald Acuna Jr. has flashed the talent to soon become NL's top player
While Shohei Ohtani and Ronald Acuna Jr. were named baseball's top rookies, the Braves outfielder has flashed the potential to quickly become one of the game's elite players.
Mariners deny ex-employee's claims of racism toward Latino players
The Mariners denied allegations made by a former employee that management called Latino players, especially those from the Dominican Republic, "dumb" and "stupid."
Braves' Ronald Acuna Jr. earns NL Rookie of the Year honors
Braves outfielder Ronald Acuña Jr. was named National League Rookie of the Year on Monday following a season that saw him hit .293 with 26 home runs and 64 RBIs in 111 games.
Angels' Shohei Ohtani beats Yankees' duo to win AL Rookie of the Year
Shohei Ohtani became the fourth Japanese-born player to win Rookie of the Year, as the Angels' two-way sensation beat out Yankees duo Miguel Andujar and Gleyber Torres for the American League award.