Fixup! Fixup! implemented ``cast`` scalar function