The BLE extension methods take a List<...>, but due to type erasure it
is possible to pass an unchecked YailList into the extension,
resulting in ClassCastExceptions. This change updates the BLE
extension to create a copy of the input list and check/cast the values
to the appropriate type before passing it deeper into the extension.
The BLE extension methods take a List<...>, but due to type erasure it is possible to pass an unchecked YailList into the extension, resulting in ClassCastExceptions. This change updates the BLE extension to create a copy of the input list and check/cast the values to the appropriate type before passing it deeper into the extension.
Fixes #7
Change-Id: I72cad6405c5bace7548d6067f2f5fc605d93f267