Fix casting="unsafe" numpy warning

Address #66