A downhole valve assembly includes a safety valve and an actuator that opens and/or closes the valve. The actuator can be an electro-hydraulic actuator (EHA), an electro mechanical actuator (EMA), or an electro hydraulic pump (EHP). The downhole safety valve can also include an electric magnet.