Pointer cast type for l-value assignment