A Casper man who pleaded guilty to being a felon in possession of a firearm was sentenced to nearly four years in federal prison earlier this month.