removed casting from assignment