Updated conversion to int if bcmul not available