Java type conversion for attribute setters and operation params