Add asScalar,asString conversion methods. Close #8