Fix X10 C++ compilation on macOS. (#947)
Fix X10 C++ compilation on macOS. (#947)

Add `static_cast<int>(...)` to fix compilation errors.
tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis