copy variables into state params for type casting