Added explicit numpy cast.