Removed unneeded object casting