Nonscalar types such as cursor and table cannot be used as input parameters for user defined functions. See SQL Server Books Online (Create Function) for more information.
Can you describe a fbit more of what you need to do? it is possible for you to reference a temp table from inside the udf...but you can't pass a temp table variable into a udf.