I assume that since it is a solar powered inverter, it uses PWM to keep the total o/p power with a certain range. That is, in bright conditions, the duty cycle will be less than 50%, and under dull conditions, more than 50%. I also assume that you need to simply convert the square or rectangular wave itself to sine - that is, the PWM signal itself is not being modulated by a sine wave which needs to be extracted from it.
If that is the case, unless we know by how much the duty cycle varies between different light conditions, we cannot say for sure if it can be converted to sine wave. For example, if it is between, say, 50 +/-5%, we can probably convert it to a sine wave (with caveats). But if the duty cycle variation is more than that then we will not be able to convert it to sine wave. For one, a sine wave has a constant DC offset or mean value (usually zero). However a sine wave generated from PWM will have a net mean value that will vary based on the on/off time of the PWM wave - and most equipment will not like this.
If the duty cycle variation is within +/-5%, you will get a pseudo-sine wave that has a net mean value that will vary by that much - and hopefully any equipment connected to it will (or should) be able to cope with it. Also, once you convert it to sine wave the total power available will also be reduced since the peak value of the sine wave will be limited to that of the square wave, but the RMS value will now be 0.707 times the peak whereas for a square wave the RMS value is the same as the peak value. This will get worse (for AC) if the duty cycle is not 50%.