converts an usual expr in NPI expr