Removed the necessity of explicitly casting.