'As' function for constants