Add buffer size limitation for int2str() and return status. If success, return CAST_OK, if not, return CAST_FAIL