astype checks notnull Fixes: #8732 added benchmark,added null check