Handled type cast warnings.
Updated to recommended project settings.