Add ssize and remove static_casts