X86: Turn redundant if into an assertion.

While there remove noop casts.