Type cast permanence array as realType.

The numpy array used to get permanence values has to be type cast as realType
in order to get the actual values, failure to do so does not result in an error
but does return incorrect values.