closes #100 use format for as()
Merge pull request #101 from twillouer/issue100

closes #100 use format for as()