#1158 numpy typecast