Added As<> extension.