Convert offset and total fields to int types