Getter/Setter Using Different Accessors

Hey all,

public function set varName(list:XMLList):void {
	_varName = int(list.@value);
public function get varName():int {
	return _varName;

As you can see, I’m trying to set varName using an XMLList object and trying to get the getter method to spit back the value, an int(). This gives me an error:

1053: Accessor types must match.

I know this must be because I’m trying to get an XMLList object as the input and output an int, but is there any way I can do this without having to use normal methods? I desperately need to be able to use getter/setter methods simply because I can use variable syntax…