Use numerical equality, moves the prim return type hint in the right pla...

...ce and uses unchecked ops.