Function asTrue

Returns true if x is true, otherwise returns false.