Cast #shares to long