msgQ: silence cpp compiler errors by explicit casts