add fix for numpy type cast complaints