return value as int