Useful in registered_callbacks when library can't achieve automatic type conversion.
registered_callbacks
iex> flags = [{ 0x01, :flag_a}, {0x02, :flag_b}] ...> BinStruct.FlagsWriter.write_flags_to_integer(flags, [:flag_a]) 0x01copy
iex> flags = [{ 0x01, :flag_a}, {0x02, :flag_b}] ...> BinStruct.FlagsWriter.write_flags_to_integer(flags, [:flag_a]) 0x01