. nil guard for typecasting setter