Ad
  • Custom User Avatar

    Aren't strings exception when it comes to comparing non-primitive types, so they are compared by value?
    Can you explain why you cast to string if it is already a string (since you cast to string only if it is of type string already)?
    If it is a string there should be no reason to cast it again to string? and since it is a string when compared to string it is done by value not reference?