[Mips] Reduce the number of type-casting calls.