you can add a function
addhostobject("int", new Func<object, int>(o => Convert.ToInt32(o));
addhostobject("int", new Func<object, int>(o => Convert.ToInt32(o));