tags:

views:

46

answers:

1

Say I have a variable $foo. I'd like to use $foo castable as element(), but I can't use a node type after castable.

A: 

$foo instance of element() does the trick.

Alessandro Vernet