Fixed query param parsing/casting.