Ordered that the judgment is affirmed.
The defendant executed a written waiver of his right to appeal. The waiver of the right to appeal encompassed any claim that the sentence imposed was excessive ( see People v Blair, 26 AD3d 513), as well as any claim that the defendant was entitled to youthful offender treatment ( see People v Friedlander, 11 AD3d 5*56 [2004]).
The defendant's remaining contention is unpreserved for appellate review.