[PATCH 2/4] tap: Simplify some casts in the tap "slow path" functions