The present invention relates to a method of producing a heterologous protein or polypeptide having phytase activity in a yeast system. The invention also provides proteins having phytase activity which have increased thermostability. Yeast strains which produce a heterologous phytase and the vectors used to produce the phytase are also provided.