New York Yankees general manager Brian Cashman might be locking in on a pitcher from the Arizona Diamondbacks before the July 31 MLB trade deadline, and it’s not former Cy Young Award winner Zack Greinke.

The Yankees are expressing interest in left-hander Robbie Ray, according to MLB Network’s Jon Morosi.

#Yankees are among the teams to have contact with #DBacks about Robbie Ray in recent days, source confirms. @MLBNetwork @MLB

#Yankees are among the teams to have contact with #DBacks about Robbie Ray in recent days, source confirms. @MLBNetwork @MLB — Jon Morosi (@jonmorosi) July 24, 2019

The 27-year-old Ray is 9-6 with a 3.95 ERA in 22 starts this season. Ray’s calling card is strikeouts: He has 162 in 123 innings pitched this season.

According to Spotrac, Ray is making $6.05 million in 2019 and has one more year of arbitration eligibility remaining, meaning he is cost-controlled through 2020.

And that’s key for Cashman, who said he doesn’t want to move top prospects like outfielder Clint Frazier and pitcher Deivi Garcia for a short-term rental player down the stretch.

The Diamondbacks are three games back in the National League wild-card race and may decide to move both Ray and Greinke before the deadline.

But trading Greinke won’t be easy. The 35-year-old right-hander has $81.5 million remaining on his contract.

Buy Yankees tickets: StubHub, SeatGeek, PrimeSport

The Yankees have been linked to many of the top pitchers on the trade market, including Texas Rangers left-hander Mike Minor, San Francisco Giants ace Madison Bumgarner, Detroit Tigers southpaw Matthew Boyd, Toronto Blue Jays right-hander Marcus Stroman and Cleveland Indians right-hander Trevor Bauer.

Mike Rosenstein may be reached at mrosenstein@njadvancemedia.com. Follow him on Twitter @rosenstein73. Find NJ.com on Facebook.