An expandable spinal implant configured for positioning within a space between adjacent vertebral bodies includes an upper body, a lower body, and first and second pins. The lower body is adapted to slidably receive the upper body. Grooves are disposed on opposing side surfaces of the upper body, and grooves are disposed on an inner surface of a bore defined through the lower body. Corresponding first and second apertures are defined through an end surface of the lower body thereby permitting advancement of the first and second pins within the first and second apertures, grooves of the lower body, and a corresponding pair of grooves of the upper body to secure the position of the upper body relative to the lower body. A method of performing spinal surgery is also disclosed.