Original Post
Hi, i need some help: in my program i have a class Object variable, which stores some input (could be int, or string or whatever). However - if the input is an integer, i have to be able to compare it to another variable, also of type object (which stores some other int value). I'm trying to find information on casting from object into int, however i'm not having much luck. so i guess what i need is a simple method or procedure, which could cast an Obj variable into an int, so that i can compare them. Oh another thing, i have to be able to compare to see if one is less than or greater than, not just to see if they are equal (that would be easy, i know). Thank you ahead of time for any help.