You should really create an enum for the different possible types, and set the int values for each constant to match the correct htslib values