Returns an immutable instance of an object.
On Android, it simply echoes the input back because threads can have shared state. On iOS, it calls .toImmutable method.
val person = Person(name = "Bob").toImmutable(person.name = "Jerry" // error