Remove nullptr casts