Update wire.lua

Fixed casting