On 5 January 2021, Kastrati signed for Ylli of the Kosovo Basketball Superleague.[1] There, he won the Kosovo Superleague in 2021 and 2022. He was selected the MVP of the 2021 Kosovo Superleague season. Kastrati parted ways with Ylli on 23 June 2022 being one of the best players the club ever had.[2]