ALBANY — A 56-year-old man was sentenced to 40 years in prison Thursday for twice raping and trying to sodomize a 16-year-old girl in Albany.

Viverth Peart of Albany began inappropriately touching the victim in 2008 when she was 13. He raped the girl in September 2011 and November 2011 — and also tried to force oral sex, Assistant District Attorney Shannon Sarfoh told jurors at Peart's trial last month.

Peart claimed to police the girl had been "coming onto him" and he agreed to have sex with her in exchange for a cellphone, but decided against it.

The jury was unmoved by the argument, finding Peart guilty of two counts of first-degree rape and third-degree rape, attempted first-degree criminal sex act, attempted third-degree criminal sex act and endangering the welfare of a child.

At the trial, Peart's attorney, Gaspar Castillo, questioned what he said was lack of blood evidence and claimed the girl had conjured up a "story."

Peart also received 40 years post-release supervision during his sentencing from state Supreme Court Justice Thomas Breslin.