Dwane Casey didn't have to wait long to find a new home. 

The Detroit Pistons have announced that they've reached an agreement with the former Toronto Raptors coach to become the organization's head coach. The two parties have agreed to a five-year deal, per ESPN's Adrian Wojnarowski. 

“I am excited and honored to join the Detroit Pistons, a franchise with a championship history and a roster that is ready to win now,” Casey said in a news release.  “Tom [Gores, owner of the Pistons] really won me over with his vision for the team and the city. He clearly wants to deliver for the fans in Detroit and I believe in the strength of his leadership to do so.

 “I’m confident that this team has the pieces in place to compete at a very high level,” Mr. Casey added. “There is a lot of talent, a solid core and some exciting young players eager to get better. We’re getting to work right away on the things that will make us all successful.”

According to TSN's Josh Lewenberg, Casey seriously considered taking a year off but bought into an aggressive recruitment from Pistons ownership. 

After seven seasons at the helm, Casey was fired by the Raptors in May despite leading Toronto to a franchise-best 59-23 record during the regular-season. The 61-year-old finished his tenure as the team's winningest coach but could never get it over the hump in the playoffs. Under Casey, the Raptors reached the Eastern Conference Finals during the 2015-16 season, but away from that feat, his teams were swept three times in the postseason, including two years in a row by the Cleveland Cavaliers.

Team president Masai Ujiri acknowledged the club needed to make a change. 

“After careful consideration, I have decided this is a very difficult but necessary step the franchise must take,” Ujiri said in a press release. “As a team, we are constantly trying to grow and improve in order to get to the next level. We celebrate everything Dwane has done for the organization, we thank him, and we wish him nothing but the best in future. He was instrumental in creating the identity and culture of who we are as a team, and we are so proud of that.”

“I leave [Toronto] with my head high,” he told TSN via text message last month. “I know where we started.”

The Pistons parted ways with former head coach Stan Van Gundy in early May after four seasons with the club upon missing the playoffs for the second straight season. Van Gundy held the title of both head coach and president of basketball operations, which will now be overseen by Ed Stefanski. The club was connected to Casey early in their interview process, with University of Michigan head coach John Beilein also in the mix for the job. 

Despite missing the playoffs, Detroit traded for Blake Griffin and have a strong tandem of him and centre Andre Drummond. Part of getting the Pistons back on track will be fixing their offence, which ranked 22nd in both field goal percentage and points per game last season. 

Detroit's playoff appearance in 2015-16 was their only one since 2008-09 when they were bounced in the first round by LeBron James and the Cavaliers.