Corrected casting error in SptialBlock