I have in my system a Session that stores an information "S" or "N"
Session["Administrador"] = retorno.ADMINISTRADOR;
In the layout I want to make the conversion of it to boolean
@{
bool administrador = bool.Parse(Session["Administrador"].ToString());
}