Better notices when casting fails
Cast null to array