The Toronto Raptors have agreed upon a three-year deal with Dwane Casey, according to sources.

Casey's future with the Raptors appeared uncertain before the start of the season, but helped turn around the Raptors into a team that won the Atlantic Division.

Casey was hired by the Raptors before the 11-12 season.

David Aldridge of NBA.com reports that Casey's deal will likely be worth just under $4 million per season.