# Strict Datatyping question

**URL:** https://forum.kirupa.com/t/strict-datatyping-question/156712
**Category:** Uncategorized
**Created:** [July 27, 2005, 3:15pm UTC](https://forum.kirupa.com/t/strict-datatyping-question/156712 "2005-07-27T15:15:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flashkiddy](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@Flashkiddy](https://forum.kirupa.com/u/Flashkiddy)
#### Post date: [July 27, 2005, 3:15pm UTC](https://forum.kirupa.com/t/strict-datatyping-question/156712/1 "2005-07-27T15:15:39Z")

</div>

Hi there, i have the following code in a class:

_[font=Courier New]var stringComparer:String = Config.DisabledPages[index][/font]_

The part “Config.DisabledPages[index]” is a direct reference to a static attribute in the class “Config”.

My problem: I traced the datatype of the static property like this:  
\*[font=Courier New]typeof(Config.DisabledPages[index]);

[/font]\*It answered that it is of type Object, so not string. But Flash doesn’t produce an error that there is a wrong datatype being used foor stringComparer.

Probably a simple question, but I honestly dont know why it doenst work…
