Fix bug - cast didn't refer to reshape namespace