A former Canada Revenue Agency worker in Sudbury with ties to biker gangs is going to jail for two and half years.

Christopher Casola was facing 21 charges after it was discovered he used his c-r-a computer to access confidential tax records of three known bikers and two Sudbury police officers, one of them a member of the gang task force.

The case was set to go to trial but in the middle of jury selection, Casola pleaded guilty to breach of a trust and a pair of weapons charges related to a handgun and ammunition found in his home.

The judge agreed to the joint sentencing recommendation submitted by the crown and defense, which also includes a 10-year firearms ban and a d-n-a sample for the national databank. At 48 years old, Casola had no prior criminal record.