Description
The ALS is performing unnecessary casting to the user and item ids (to double). I believe this is because the protected checkedCast() method requires a double input. This can be avoided by refactroing the code of checkedCast method.
Issue resolved by pull-request 17059:
https://github.com/apache/spark/pull/17059