Made destination settable
Added int cast