A convicted sex offender was arrested Thursday morning for failing to update his registration after a police officer found him sleeping inside a vehicle in the parking lot of the east-side Walmart.

Gary Brummett, 50, was booked into jail on a recommended charge of failure to register as a sex offender.

According to an affidavit of probable cause, a Casper police officer was at the east-side Walmart at 10:40 a.m. Thursday when he saw a man sleeping in his vehicle. Walmart staff had previously told the officer that they did not want anyone sleeping in cars in their parking lot, so the officer knocked on the man's window and spoke to him.

The man, identified as Brummett, said he had been sleeping in his car because he was homeless and had nowhere else to go. Dispatch informed the officer that Brummett is a registered sex offender.

According to the Wyoming Division of Criminal Investigation's sex offender registry, Brummett was convicted in Montana in 1997 of second-degree sexual abuse of a minor.

When asked why he hadn't been staying at the address on file with authorities, Brummett said he hadn't been there for about a year and hadn't updated his information with the Natrona County Sheriff's Office because he was trying to figure out what to do.

Brummett was arrested. His vehicle was locked and secured in the parking lot.