Fixing type casting in variable assignment.