add nullptr cast testing