title: Howto allow any data type to be returned by a function in actionscript 3?
body: <p>I have a static Settings class where my application can retrieve settings from. The problem is that some of these settings are strings, while others are ints or numbers. Example:</p>
  
  <pre><code>package
  {
      public final class Settings
      {
          public static function retrieve(msg:String)
          {
              switch (msg)
              {
                  case "register_link":
                      return "http://test.com/client/register.php";
                      break;
                              case "time_limit":
                                     return 50;
                                     break;
              }
          }
      }
  }
  </code></pre>
  
  <p>Now, in the first case it should send a string and in the second a uint. However, how do I set this in the function declarement? Instead of eg. function retrieve(msg:String):String or ...:uint? If I don't set any data type, I get a warning.</p>