Revert "Change toRaw() to rawValue for Xcode6.1-beta2."

This reverts commit 5f7bf7b39dcc8f4bc9c8bbe69645621286d998e2.