Coerce native return values to ints