Fix #20 Unhandled exception: Use boxed types on client side