JavaScriptで知ってHappyになる型変換 ref: http://qiita.com/items/c020204c7bb9bf84b477