Instead of (tst as Long), try Long::parseLong(tst) using the static parseLong method on java.lang.Long.
(tst as Long)
Long::parseLong(tst)
parseLong