Fix style and a small typo.

Change-Id: I3525f400feecd11be9cd90a142434f6eb89d965a
diff --git a/slang_rs_object_ref_count.cpp b/slang_rs_object_ref_count.cpp
index e2bce4f..b81dd96 100644
--- a/slang_rs_object_ref_count.cpp
+++ b/slang_rs_object_ref_count.cpp
@@ -197,7 +197,7 @@
 
   const clang::ConstantArrayType *CAT =
     static_cast<const clang::ConstantArrayType *>(T);
-  return (int)CAT->getSize().getSExtValue();
+  return static_cast<int>(CAT->getSize().getSExtValue());
 }
 
 static clang::Stmt *ClearArrayRSObject(clang::VarDecl *VD,