Fixes a type conversion issue.