able to convert anyobject to int and save to an instance var