Fixed conversion for basic types.