# Functions: unknown parameter types and getting around them

**URL:** <https://forum.kirupa.com/t/functions-unknown-parameter-types-and-getting-around-them/218865>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 12:05am UTC](https://forum.kirupa.com/t/functions-unknown-parameter-types-and-getting-around-them/218865 "2007-03-12T00:05:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Post date:** [March 12, 2007, 12:05am UTC](https://forum.kirupa.com/t/functions-unknown-parameter-types-and-getting-around-them/218865/1 "2007-03-12T00:05:09Z")

</div>

If i have a function and im strict typing: such as

private var x:Number

public function foo(y:Number){  
x = y;  
}

public function foo2(y:MovieClip){  
x = y;  
}

obviously the second doesnt work because y is a movieclip and x is a number, but i want to be able to set x to whatever type is being passed in.

is this possible??
