Conversions involving squares and cubic