asUserIdOrNull

Casts this UserIdentifier as a UserId and retrieves its kotlin.String value. Returns null if the UserIdentifier is not a UserId.