Removed casting error