astype checks notnull Fixes: #8732