as_nparray compiles but may not work right now