Type conversion to fix some compile errors.