How to copy the existing project parameter to the new share parameter

Hi,
I’m new with Dynamo, I have a existing project parameter need copy to the share parameter that allow me schedule them. I have draft a script but not working as I have set the parameter type to integer, when using list.create will turn them all to strings.
and aslo in the existing project parameter some of them have value some not, is there any way to solve this?

thanks.