Silencing Clang warning bys casting values

Warnings were: "Implicit conversion loses integer precision: 'size_t' to 'cs_mode'/'cs_opt_value'"
diff --git a/arch/ARM/ARMModule.c b/arch/ARM/ARMModule.c
index be47379..96a1731 100644
--- a/arch/ARM/ARMModule.c
+++ b/arch/ARM/ARMModule.c
@@ -48,7 +48,7 @@
 			else
 				handle->disasm = ARM_getInstruction;
 
-			handle->mode = value;
+			handle->mode = (cs_mode)value;
 			break;
 		case CS_OPT_SYNTAX:
 			ARM_getRegName(handle, (int)value);
diff --git a/arch/Mips/MipsModule.c b/arch/Mips/MipsModule.c
index 1579146..809cb83 100644
--- a/arch/Mips/MipsModule.c
+++ b/arch/Mips/MipsModule.c
@@ -46,7 +46,7 @@
 		else
 			handle->disasm = Mips64_getInstruction;
 
-		handle->mode = value;
+		handle->mode = (cs_mode)value;
 	}
 	return CS_ERR_OK;
 }
diff --git a/arch/X86/X86Module.c b/arch/X86/X86Module.c
index 9266c4a..094ba2d 100644
--- a/arch/X86/X86Module.c
+++ b/arch/X86/X86Module.c
@@ -51,7 +51,7 @@
 			else
 				handle->regsize_map = regsize_map_32;
 
-			handle->mode = value;
+			handle->mode = (cs_mode)value;
 			break;
 		case CS_OPT_SYNTAX:
 			switch(value) {
diff --git a/cs.c b/cs.c
index c4f8c8f..66013b6 100644
--- a/cs.c
+++ b/cs.c
@@ -363,7 +363,7 @@
 		default:
 			break;
 		case CS_OPT_DETAIL:
-			handle->detail = value;
+			handle->detail = (cs_opt_value)value;
 			return CS_ERR_OK;
 		case CS_OPT_SKIPDATA:
 			handle->skipdata = (value == CS_OPT_ON);