Index: code/branches/core/src/orxonox/core/ConfigValueContainer.cc
===================================================================
--- code/branches/core/src/orxonox/core/ConfigValueContainer.cc	(revision 792)
+++ code/branches/core/src/orxonox/core/ConfigValueContainer.cc	(revision 794)
@@ -231,5 +231,5 @@
         int temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -245,5 +245,5 @@
         unsigned int temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -260,5 +260,5 @@
         int temp;
         bool success = ConvertValue(&temp, input, (int)defvalue);
-        ((MultiTypePrimitive)this->value_).setValue((char)temp);
+        this->value_.setValue((char)temp);
         return success;
     }
@@ -275,5 +275,5 @@
         unsigned int temp;
         bool success = ConvertValue(&temp, input, (unsigned int)defvalue);
-        ((MultiTypePrimitive)this->value_).setValue((unsigned char)temp);
+        this->value_.setValue((unsigned char)temp);
         return success;
     }
@@ -289,5 +289,5 @@
         short temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -303,5 +303,5 @@
         unsigned short temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -317,5 +317,5 @@
         long temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -331,5 +331,5 @@
         unsigned long temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -345,5 +345,5 @@
         float temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -359,5 +359,5 @@
         double temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -373,5 +373,5 @@
         long double temp;
         bool success = ConvertValue(&temp, input, defvalue);
-        ((MultiTypePrimitive)this->value_).setValue(temp);
+        this->value_.setValue(temp);
         return success;
     }
@@ -390,10 +390,10 @@
          || input.find("yes") < input.size()
          || input.find("Yes") < input.size())
-            ((MultiTypePrimitive)this->value_).setValue(true);
+            this->value_.setValue(true);
         else if (input.find("false") < input.size()
               || input.find("False") < input.size()
               || input.find("no") < input.size()
               || input.find("No") < input.size())
-            ((MultiTypePrimitive)this->value_).setValue(false);
+            this->value_.setValue(false);
         else
         {
@@ -401,5 +401,5 @@
             bool temp;
             bool success = ConvertValue(&temp, input, defvalue);
-            ((MultiTypePrimitive)this->value_).setValue(temp);
+            this->value_.setValue(temp);
             return success;
         }
Index: code/branches/core/src/orxonox/core/ConfigValueContainer.h
===================================================================
--- code/branches/core/src/orxonox/core/ConfigValueContainer.h	(revision 792)
+++ code/branches/core/src/orxonox/core/ConfigValueContainer.h	(revision 794)
@@ -79,17 +79,17 @@
             inline ConfigValueContainer& getValue(T& value)                           { this->value_.getValue(value); return *this; }
 */
-            inline ConfigValueContainer& getValue(int* value)            { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(unsigned int* value)   { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(char* value)           { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(unsigned char* value)  { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(short* value)          { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(unsigned short* value) { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(long* value)           { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(unsigned long* value)  { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(float* value)          { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(double* value)         { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(long double* value)    { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(bool* value)           { ((MultiTypePrimitive)this->value_).getValue(value); return *this; }
-            inline ConfigValueContainer& getValue(std::string* value)    { ((MultiTypeString)this->value_).getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(int* value)            { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(unsigned int* value)   { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(char* value)           { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(unsigned char* value)  { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(short* value)          { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(unsigned short* value) { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(long* value)           { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(unsigned long* value)  { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(float* value)          { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(double* value)         { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(long double* value)    { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(bool* value)           { this->value_.getValue(value); return *this; }
+            inline ConfigValueContainer& getValue(std::string* value)    { this->value_.getValue(value); return *this; }
             inline ConfigValueContainer& getValue(Vector2* value)        { this->value_.getValue(value); return *this; }
             inline ConfigValueContainer& getValue(Vector3* value)        { this->value_.getValue(value); return *this; }
