Fix qtshark compilation with more explicit casts (follow-up of g106c8b3)

Change-Id: I81f862e03977b7fd8aa6852fada0c6e1b00b52bf
Reviewed-on: https://code.wireshark.org/review/2849
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>