valueOf(Objectj)

The static method String valueOf(Object obj) returns null if the provided object is null, or calls the method toString() on the object provided.