They were all traffic violations: http://www.kare11.com/news/investigations/kare-11-investigates-racial-profiling-in-minnesota/266814958
Those records show Castile had 79 different charges all of them vehicle and traffic stop related. More than half of them 48 eventually were dismissed.
Castile was found guilty 31 times of misdemeanors or petty misdemeanors. The charges included driving on a suspended license, no proof of insurance, and seatbelt and parking violations.
None of Castiles charges or convictions involve guns, violence, threats against or fleeing police.