Operator '*' cannot be used with a left hand side of type 'int' and a right hand side of type 'Object'.

I don’t know why is code isn’t working, I made it and I don’t know why.

#pragma strict

function TimesByTwo(YourNumber){

	var NewNumber = 2 * YourNumber;

	return NewNumber;


};

TimesByTwo(5);

It keeps saying, “Operator ‘*’ cannot be used with a left hand side of type ‘int’ and a right hand side of type ‘Object’.”

If you know why is happening and How I can fix it please tell me.
Thanks!

YourNumber doesn’t have a type, so it’s treated as an Object. There is no operator * which can multiply an integer by an Object. Tell the compiler that YourNumber is an integer.

function TimesByTwo(YourNumber : int){