N.Y. Retirement & Social Security Law § 89-A
(g) A member, excepting a sheriff, contributing on the basis of this section at the time of retirement, shall retire either (a) after the completion of twenty-five years of total creditable service, provided he has reached age fifty, or (b) upon the attainment of age sixty-five. Application therefor may be filed in a manner similar to that provided in section seventy of this article.