Add toSafeObject to User