All pastes #625261 Raw Edit

Untitled

public text v1 · immutable
#625261 ·published 2007-07-18 20:55 UTC
rendered paste body
i wonder, is it possible to create class with 'hidden typecast' or smth, w/o using methods or fields
like here:
SomeClass x = New SomeClass(,,,);
int y = x; // x will return int
String z = x; // x return String