Notwithstanding any other law to the contrary, the beneficiary of a member who has more than 37 years of service credit and who dies on or after the 24th day after filing an application for retirement and two days before the effective date of the retirement may elect to receive the death benefit payable to the member's beneficiary if the member had died in active service or the retirement allowance elected by the member and payable to the beneficiary pursuant to section 18A:66-47.
N.J.S. § 18A:66-47.2