public object multiply(object x, object y) { long ret = Convert.ToInt64(x) * Convert.ToInt64(y); if (ret <= Int32.MaxValue && ret >= Int32.MinValue) return (int)ret; return ret; }