remove casting from controller