The current implementation of GeometryCast requires SRID to pressent in the expression.
The ST_GeomFromText specifications allows SRID not to be specified
ST_GeomFromText
I have adjusted GeometryCast to use the same regex and return 0 when SRID is not defined.