Fixed infinite recursion.
Removed cast.
Merged.