Cast the more correct side of the equality test
Fix types
Implement OID decoding