dtype exception checking