Search notes:

PowerShell: -as operator

The -as operator casts a value into a different type.
123.45 -as [int]                     # 123
 "42"            +  "13"             # 4213
("42" -as [int]) + ("13" -as [int])  # 55
Github repository about-PowerShell, path: /language/operator/as.ps1

Casting strings to types

'system.int32' -as [type]

See also

A value can also be cast into another type by prepending the type before it:
[int]0x40
operators

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1740463672, '18.224.38.218', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/operator/as(51): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78