asUserNameOrNull

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