Ok, I'll rewert cast in non-dmd case. Another trouble: dmd can't inline function with if-else even if condition is trivially evaluatable at compile time like `__ctfe` pseudu-variable.