How to convert the string \"User\" to User?
\"User\"
User
If you have ActiveSupport loaded (e.g. in Rails) you can use
"User".constantize