Support for conversions between MPs and C integers.